1 # Copyright (C) 2003 CEA/DEN, EDF R&D
6 # Author : Nicolas REJNERI
10 top_srcdir=@top_srcdir@
13 VPATH=.:@srcdir@:@top_srcdir@/idl
19 # PYQT_SIPS defined in make_commence.in
22 # SIP defined in make_commence.in
23 SIP_FLAGS = -t WS_X11 -t Qt_3_0_5 -s ".cc" -c $(CURDIR) -I $(PYQT_SIPS)
28 SIP_FILES = SalomePyQt.sip
30 # SIP-generated C++ source files (corresponding line should be added for each wrapped class
31 # contained by SalomePyQt module)
33 SIP_SRC=$(CURDIR)/SalomePyQtcmodule.cc \
34 $(CURDIR)/sipSalomePyQtSalomePyQt.cc \
35 $(CURDIR)/sipSalomePyQtSALOME_Selection.cc
37 ifeq ($(SIP_VERS),new2)
38 MOC_SRC = SalomePyQtcmodule_moc.cxx
39 MOC_H = SalomePyQtcmodule.h
41 MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
42 MOC_H = sipSalomePyQtProxySalomePyQt.h
47 LIB = libSalomePyQtcmodule.la
49 LIB_SRC += SalomePyQt.cxx SALOME_PYQT_GUI.cxx $(SIP_SRC) $(MOC_SRC)
50 LIB_MOC = SALOME_PYQT_GUI.h
52 #LIB_MOC += sipSalomePyQtProxySalomePyQt.h
54 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
56 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_ContainerManager.idl
58 CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES)
59 LIBS+= $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
60 LDFLAGS+= -lSalomeGUI -lqtcmodule
63 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
65 $(SIP_SRC): $(SIP_FILES)
66 $(SIP) $(SIP_FLAGS) $<