1 # Copyright (C) 2003 CEA/DEN, EDF R&D
6 # Author : Nicolas REJNERI
10 top_srcdir=@top_srcdir@
13 VPATH=.:@srcdir@:@top_srcdir@/idl
18 # small trick for Mandrake-10.1: PyQt 3.13 does not support Qt 3.3.3
19 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)
29 SIP_SRC = sipSalomePyQtSalomePyQt.cc \
30 sipSalomePyQtSALOME_Selection.cc
32 # Sip version-specific sources
33 ifeq ($(SIP_VERS),v4_old)
34 SIP_SRC += sipSalomePyQtcmodule.cc
36 ifeq ($(SIP_VERS),v4_new)
37 SIP_SRC += sipSalomePyQtcmodule.cc
39 SIP_SRC += SalomePyQtcmodule.cc
44 ifeq ($(SIP_VERS),v4_old)
45 MOC_SRC = sipSalomePyQtcmodule_moc.cxx
46 MOC_H = sipSalomePyQtcmodule.h
48 ifeq ($(SIP_VERS),v3_new)
49 MOC_SRC = SalomePyQtcmodule_moc.cxx
50 MOC_H = SalomePyQtcmodule.h
52 ifeq ($(SIP_VERS),v3_old)
53 MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
54 MOC_H = sipSalomePyQtProxySalomePyQt.h
59 # Sip definition files
60 ifeq ($(SIP_VERS),v4_old)
61 SIP_FILES = SalomePyQt_v4.sip
63 ifeq ($(SIP_VERS),v4_new)
64 SIP_FILES = SalomePyQt_v4.sip
66 SIP_FILES = SalomePyQt.sip
71 ifeq ($(SIP_VERS),v4_old)
74 ifeq ($(SIP_VERS),v4_new)
77 LIB = libSalomePyQtcmodule.la
81 # Exported python scripts
82 ifeq ($(SIP_VERS),v3_old)
83 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
85 ifeq ($(SIP_VERS),v3_new)
86 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
91 LIB_SRC = SalomePyQt.cxx \
96 LIB_MOC = SalomePyQt.h
99 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
101 # Compilation/linkage flags
102 CPPFLAGS += $(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H -I${KERNEL_ROOT_DIR}/include/salome
103 LIBS += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
104 LDFLAGS += -lsuit -lCAM -lstd -lqtx -lSalomeApp -lSalomeSession -lEvent -lLogWindow -lVTKViewer -lToolsGUI -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeDS
107 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
108 $(SIP_SRC): $(SIP_FILES)
109 $(SIP) $(SIP_FLAGS) $<