Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / SALOME_PYQT / 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=@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
23 # Sip flags
24 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) -s ".cc" -c . -I $(PYQT_SIPS)
25 # Sip common sources
26 SIP_SRC = sipSalomePyQtSalomePyQt.cc \
27           sipSalomePyQtSALOME_Selection.cc
28
29 # Sip version-specific sources
30 ifeq ($(SIP_VERS),v4)
31 SIP_SRC  += sipSalomePyQtcmodule.cc
32 else
33 SIP_SRC  += SalomePyQtcmodule.cc
34 endif
35
36 # Sip/moc sources
37 ifeq ($(SIP_VERS),v4)
38 MOC_SRC   = sipSalomePyQtcmodule_moc.cxx
39 MOC_H     = sipSalomePyQtcmodule.h
40 else 
41 ifeq ($(SIP_VERS),v3_new)
42 MOC_SRC   = SalomePyQtcmodule_moc.cxx
43 MOC_H     = SalomePyQtcmodule.h
44 else
45 MOC_SRC   = sipSalomePyQtProxySalomePyQt_moc.cxx
46 MOC_H     = sipSalomePyQtProxySalomePyQt.h
47 endif
48 endif
49
50 # Sip definition files
51 ifeq ($(SIP_VERS),v4)
52 SIP_FILES = SalomePyQt_v4.sip
53 else
54 SIP_FILES = SalomePyQt.sip
55 endif 
56
57 # Libraries targets
58 ifeq ($(SIP_VERS),v4)
59 LIB = SalomePyQt.so
60 else
61 LIB = libSalomePyQtcmodule.la
62 endif 
63
64 # Exported python scripts
65 ifneq ($(SIP_VERS),v4)
66 EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
67 endif
68
69 # Library sources
70 LIB_SRC = SalomePyQt.cxx \
71           $(SIP_SRC)     \
72           $(MOC_SRC) 
73
74 # Library moc sources
75 LIB_MOC =
76
77 # Client IDL
78 LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
79
80 # Compilation/linkage flags
81 CPPFLAGS += $(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H -I${KERNEL_ROOT_DIR}/include/salome
82 LIBS     += $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
83 #LDFLAGS  += -lsuit -lCAM -lstd -lqtx -lSalomeApp -lEvent -lLogWindow -lVTKViewer -lToolsGUI -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeDS
84 LDFLAGS += -lVTKViewer -lToolsGUI -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeDS
85
86 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
87 $(SIP_SRC): $(SIP_FILES)
88         $(SIP) $(SIP_FLAGS) $<
89
90 $(MOC_SRC): $(MOC_H)
91         $(MOC) $< -o $@
92
93 @CONCLUDE@