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) $(PYQT_SIPFLAGS) -s ".cc" -c . -I $(PYQT_SIPS)
30 SIP_SRC = sipSalomePyQtSalomePyQt.cc \
31 sipSalomePyQtSALOME_Selection.cc \
32 sipSalomePyQtQtxAction.cc
34 # Sip version-specific sources
35 ifeq ($(SIP_VERS),v4_old)
36 SIP_SRC += sipSalomePyQtcmodule.cc
38 ifeq ($(SIP_VERS),v4_new)
39 SIP_SRC += sipSalomePyQtcmodule.cc
41 SIP_SRC += SalomePyQtcmodule.cc
46 ifeq ($(SIP_VERS),v4_old)
47 MOC_SRC = sipSalomePyQtcmodule_moc.cxx
48 MOC_H = sipSalomePyQtcmodule.h
50 ifeq ($(SIP_VERS),v3_new)
51 MOC_SRC = SalomePyQtcmodule_moc.cxx
52 MOC_H = SalomePyQtcmodule.h
54 ifeq ($(SIP_VERS),v3_old)
55 MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
56 MOC_H = sipSalomePyQtProxySalomePyQt.h
61 # Sip definition files
62 ifeq ($(SIP_VERS),v4_old)
63 SIP_FILES = SalomePyQt_v4.sip
65 ifeq ($(SIP_VERS),v4_new)
66 SIP_FILES = SalomePyQt_v4.sip
68 SIP_FILES = SalomePyQt.sip
73 ifeq ($(SIP_VERS),v4_old)
76 ifeq ($(SIP_VERS),v4_new)
79 LIB = libSalomePyQtcmodule.la
83 # Exported python scripts
84 ifeq ($(SIP_VERS),v3_old)
85 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
87 ifeq ($(SIP_VERS),v3_new)
88 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
93 LIB_SRC = SalomePyQt.cxx \
98 LIB_MOC = SalomePyQt.h
101 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
103 # Compilation/linkage flags
104 CPPFLAGS += $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H $(KERNEL_CXXFLAGS)
105 LIBS += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
106 LDFLAGS += -lsuit -lCAM -lstd -lqtx -lSalomeApp -lSalomeSession -lEvent -lLogWindow -lVTKViewer -lToolsGUI -lSalomePyQtGUI
109 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
110 $(SIP_SRC): $(SIP_FILES)
111 $(SIP) $(SIP_FLAGS) $<