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
34 SIP_SRC += sipSalomePyQtcmodule.cc
36 SIP_SRC += SalomePyQtcmodule.cc
41 MOC_SRC = sipSalomePyQtcmodule_moc.cxx
42 MOC_H = sipSalomePyQtcmodule.h
44 ifeq ($(SIP_VERS),v3_new)
45 MOC_SRC = SalomePyQtcmodule_moc.cxx
46 MOC_H = SalomePyQtcmodule.h
48 MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
49 MOC_H = sipSalomePyQtProxySalomePyQt.h
53 # Sip definition files
55 SIP_FILES = SalomePyQt_v4.sip
57 SIP_FILES = SalomePyQt.sip
64 LIB = libSalomePyQtcmodule.la
67 # Exported python scripts
68 ifneq ($(SIP_VERS),v4)
69 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
73 LIB_SRC = SalomePyQt.cxx \
78 LIB_MOC = SalomePyQt.h
81 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
83 # Compilation/linkage flags
84 CPPFLAGS += $(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H -I${KERNEL_ROOT_DIR}/include/salome
85 LIBS += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
86 LDFLAGS += -lsuit -lCAM -lstd -lqtx -lSalomeApp -lSalomeSession -lEvent -lLogWindow -lVTKViewer -lToolsGUI -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeDS
89 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
90 $(SIP_SRC): $(SIP_FILES)
91 $(SIP) $(SIP_FLAGS) $<