Salome HOME
Add sip version definition include file (needed for the compilation).
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUI / Makefile.in
1 #  Copyright (C) 2003  CEA/DEN, EDF R&D
2 #
3 #
4 #
5 #  File   : Makefile.in
6 #  Author : Nicolas REJNERI
7 #  Module : SALOME
8 #  $Header$
9
10 top_srcdir=@top_srcdir@
11 top_builddir=../../..
12 srcdir=@srcdir@
13 VPATH=.:@srcdir@:@top_srcdir@/idl
14
15 @COMMENCE@
16
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)
19 QT_VERS = Qt_3_3_0
20 endif
21
22 ifeq ($(QT_VERS),Qt_3_3_4)
23 QT_VERS = Qt_3_3_0
24 endif
25
26 # Sip flags
27 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) -s ".cc" -c . -I $(PYQT_SIPS)
28
29 # Sip sources
30 ifeq ($(SIP_VERS),v4_old)
31 SIP_SRC   = sipSalomePyQtGUIcmodule.cc
32 SIP_FILES = SALOME_PYQT_GUI.sip
33 else
34 ifeq ($(SIP_VERS),v4_new)
35 SIP_SRC   = sipSalomePyQtGUIcmodule.cc
36 SIP_FILES = SALOME_PYQT_GUI.sip
37 else
38 SIP_SRC   = SalomePyQtGUIcmodule.cc
39 SIP_FILES = SALOME_PYQT_GUI.sip
40 endif
41 endif
42
43 ######################
44
45 # headers
46 EXPORT_HEADERS = SALOME_PYQT_GUI.h \
47                  SALOME_PYQT_PyInterp.h \
48                  SALOME_PYQT_Module.h
49
50 # Library target
51 LIB = libSalomePyQtGUI.la
52
53 # library sources
54 LIB_SRC = SALOME_PYQT_PyInterp.cxx \
55           SALOME_PYQT_Module.cxx \
56          $(SIP_SRC)
57
58 # moc pre-processing
59 LIB_MOC = SALOME_PYQT_Module.h
60
61 LIB_CLIENT_IDL = SALOME_Exception.idl \
62                  SALOME_GenericObj.idl \
63                  SALOME_ContainerManager.idl \
64                  SALOME_Component.idl 
65
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 -D__CALL_OLD_METHODS__
67
68 LIBS     += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
69 LDFLAGS  += -lPyInterp -lSalomeApp
70
71 ##################################
72
73 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
74
75 $(SIP_SRC): $(SIP_FILES)
76         $(SIP) $(SIP_FLAGS) $<
77
78 $(MOC_SRC): $(MOC_H)
79         $(MOC) $< -o $@
80
81 ###################################
82
83 @CONCLUDE@