1 # Copyright (C) 2003 CEA/DEN, EDF R&D
6 # Author : Nicolas REJNERI
10 top_srcdir=@top_srcdir@
13 VPATH=.:@srcdir@:@top_srcdir@/idl
17 # small trick for Mandrake-10.1: PyQt 3.13 does not support Qt 3.3.3
18 ifeq ($(QT_VERS),Qt_3_3_3)
22 ifeq ($(QT_VERS),Qt_3_3_4)
27 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) -s ".cc" -c . -I $(PYQT_SIPS)
30 ifeq ($(SIP_VERS),v4_old)
31 SIP_SRC = sipSalomePyQtGUIcmodule.cc
32 SIP_FILES = SALOME_PYQT_GUI.sip
34 ifeq ($(SIP_VERS),v4_new)
35 SIP_SRC = sipSalomePyQtGUIcmodule.cc
36 SIP_FILES = SALOME_PYQT_GUI.sip
38 SIP_SRC = SalomePyQtGUIcmodule.cc
39 SIP_FILES = SALOME_PYQT_GUI.sip
43 ######################
46 EXPORT_HEADERS = SALOME_PYQT_GUI.h \
47 SALOME_PYQT_PyInterp.h \
51 LIB = libSalomePyQtGUI.la
54 LIB_SRC = SALOME_PYQT_PyInterp.cxx \
55 SALOME_PYQT_Module.cxx \
59 LIB_MOC = SALOME_PYQT_Module.h
61 LIB_CLIENT_IDL = SALOME_Exception.idl \
62 SALOME_GenericObj.idl \
63 SALOME_ContainerManager.idl \
66 CPPFLAGS += $(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H -I${KERNEL_ROOT_DIR}/include/salome
68 LIBS += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
69 LDFLAGS += -lPyInterp -lSalomeApp
71 ##################################
73 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
75 $(SIP_SRC): $(SIP_FILES)
76 $(SIP) $(SIP_FLAGS) $<
81 ###################################