]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_PYQT/SalomePyQt/Makefile.in
Salome HOME
5de10a238a5907bcee947c42bd24b9fcc5a9a31e
[modules/gui.git] / src / SALOME_PYQT / SalomePyQt / 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
16 @COMMENCE@
17
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)
20 QT_VERS = Qt_3_3_0
21 endif
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) $(PYQT_SIPFLAGS) -s ".cc" -c . -I $(PYQT_SIPS)
28
29 # Sip common sources
30 SIP_SRC = sipSalomePyQtSalomePyQt.cc \
31           sipSalomePyQtSALOME_Selection.cc \
32           sipSalomePyQtQtxAction.cc
33
34 # Sip version-specific sources
35 ifeq ($(SIP_VERS),v4_old)
36 SIP_SRC  += sipSalomePyQtcmodule.cc
37 else
38 ifeq ($(SIP_VERS),v4_new)
39 SIP_SRC  += sipSalomePyQtcmodule.cc
40 else
41 SIP_SRC  += SalomePyQtcmodule.cc
42 endif
43 endif
44
45 # Sip/moc sources
46 ifeq ($(SIP_VERS),v4_old)
47 MOC_SRC   = sipSalomePyQtcmodule_moc.cxx
48 MOC_H     = sipSalomePyQtcmodule.h
49 else 
50 ifeq ($(SIP_VERS),v3_new)
51 MOC_SRC   = SalomePyQtcmodule_moc.cxx
52 MOC_H     = SalomePyQtcmodule.h
53 else
54 ifeq ($(SIP_VERS),v3_old)
55 MOC_SRC   = sipSalomePyQtProxySalomePyQt_moc.cxx
56 MOC_H     = sipSalomePyQtProxySalomePyQt.h
57 endif
58 endif
59 endif
60
61 # Sip definition files
62 ifeq ($(SIP_VERS),v4_old)
63 SIP_FILES = SalomePyQt_v4.sip
64 else
65 ifeq ($(SIP_VERS),v4_new)
66 SIP_FILES = SalomePyQt_v4.sip
67 else
68 SIP_FILES = SalomePyQt.sip
69 endif 
70 endif 
71
72 # Libraries targets
73 ifeq ($(SIP_VERS),v4_old)
74 LIB = SalomePyQt.so
75 else
76 ifeq ($(SIP_VERS),v4_new)
77 LIB = SalomePyQt.so
78 else
79 LIB = libSalomePyQtcmodule.la
80 endif 
81 endif 
82
83 # Exported python scripts
84 ifeq ($(SIP_VERS),v3_old)
85 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
86 else
87 ifeq ($(SIP_VERS),v3_new)
88 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
89 endif
90 endif
91
92 # Library sources
93 LIB_SRC = SalomePyQt.cxx \
94           $(SIP_SRC)     \
95           $(MOC_SRC) 
96
97 # Library moc sources
98 LIB_MOC = SalomePyQt.h
99
100 # Client IDL
101 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
102
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
107
108
109 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
110 $(SIP_SRC): $(SIP_FILES)
111         $(SIP) $(SIP_FLAGS) $<
112
113 $(MOC_SRC): $(MOC_H)
114         $(MOC) $< -o $@
115
116 @CONCLUDE@