]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_PYQT/SALOME_PYQT_GUI/Makefile.in
Salome HOME
41276e5dc568963d4f0c9619b5247462e3531280
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUI / Makefile.in
1 # Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either 
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful 
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public  
14 # License along with this library; if not, write to the Free Software 
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 #  File   : Makefile.in
20 #  Author : Nicolas REJNERI
21 #  Module : SALOME
22
23 top_srcdir=@top_srcdir@
24 top_builddir=../../..
25 srcdir=@srcdir@
26 VPATH=.:@srcdir@:@top_srcdir@/idl
27
28 @COMMENCE@
29
30 # small trick for Mandrake-10.1: PyQt 3.13 does not support Qt 3.3.3
31 ifeq ($(QT_VERS),Qt_3_3_3)
32 QT_VERS = Qt_3_3_0
33 endif
34
35 ifeq ($(QT_VERS),Qt_3_3_4)
36 QT_VERS = Qt_3_3_0
37 endif
38
39 # Sip flags
40 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) $(PYQT_SIPFLAGS) -s ".cc" -c . -I $(PYQT_SIPS)
41
42 # Sip sources
43 ifeq ($(SIP_VERS),v4_old)
44 SIP_SRC   = sipSalomePyQtGUIcmodule.cc
45 SIP_FILES = SALOME_PYQT_GUI.sip
46 else
47 ifeq ($(SIP_VERS),v4_new)
48 SIP_SRC   = sipSalomePyQtGUIcmodule.cc
49 SIP_FILES = SALOME_PYQT_GUI.sip
50 else
51 SIP_SRC   = SalomePyQtGUIcmodule.cc
52 SIP_FILES = SALOME_PYQT_GUI.sip
53 endif
54 endif
55
56 ######################
57
58 # headers
59 EXPORT_HEADERS = SALOME_PYQT_GUI.h \
60                  SALOME_PYQT_PyInterp.h \
61                  SALOME_PYQT_Module.h
62
63 # Library target
64 LIB = libSalomePyQtGUI.la
65
66 # library sources
67 LIB_SRC = SALOME_PYQT_PyInterp.cxx \
68           SALOME_PYQT_Module.cxx \
69          $(SIP_SRC)
70
71 # moc pre-processing
72 LIB_MOC = SALOME_PYQT_Module.h
73
74 LIB_CLIENT_IDL = SALOME_Exception.idl \
75                  SALOME_GenericObj.idl \
76                  SALOME_ContainerManager.idl \
77                  SALOME_Component.idl 
78
79 CPPFLAGS += $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H $(KERNEL_CXXFLAGS) -D__CALL_OLD_METHODS__
80
81 LIBS     += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
82 LDFLAGS  += -lPyInterp -lSalomeApp
83
84 ##################################
85
86 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
87
88 $(SIP_SRC): $(SIP_FILES)
89         $(SIP) $(SIP_FLAGS) $<
90
91 $(MOC_SRC): $(MOC_H)
92         $(MOC) $< -o $@
93
94 ###################################
95
96 @CONCLUDE@