Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/gui.git] / src / SALOME_PYQT / SalomePyQt / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #  File   : Makefile.in
23 #  Author : Nicolas REJNERI
24 #  Module : SALOME
25 #
26 include $(top_srcdir)/adm_local/unix/make_common_starter.am
27
28 # extra source files (generated by sip)
29 SIP_SRC = sipAPISalomePyQt.h                    \
30           sipSalomePyQtSalomePyQt.cc            \
31           sipSalomePyQtSALOME_Selection.cc      \
32           sipSalomePyQtQtxAction.cc             \
33           sipSalomePyQtQtxActionGroup.cc        \
34           sipSalomePyQtQtxActionSet.cc          \
35           sipSalomePyQtcmodule.cc
36
37 # Sip definition file
38 SIP_FILES = SalomePyQt.sip
39
40 # extra dist files
41 EXTRA_DIST += $(SIP_FILES)
42
43 # extra clean files
44 CLEANFILES = $(SIP_SRC)
45
46 # moc files (generated my moc)
47 MOC_FILES = SalomePyQt_moc.cxx
48
49 # compilation flags
50 COMMON_CPP_FLAGS = $(QT_INCLUDES) $(QWT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES)    \
51         $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS)               \
52         -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -I$(top_builddir)/salomeadn/unix              \
53         -I$(srcdir) -I$(top_builddir)/idl                                               \
54         -I$(srcdir)/../../SUIT -I$(srcdir)/../../CAM -I$(srcdir)/../../STD              \
55         -I$(srcdir)/../../Qtx -I$(srcdir)/../../SalomeApp -I$(srcdir)/../../Event       \
56         -I$(srcdir)/../../SalomeSession -I$(srcdir)/../../LogWindow                     \
57         -I$(srcdir)/../../VTKViewer -I$(srcdir)/../../TOOLSGUI                          \
58         -I$(srcdir)/../../OCCViewer -I$(srcdir)/../../Plot2d                            \
59         -I$(srcdir)/../SALOME_PYQT_GUI -I$(srcdir)/../../PyInterp                       \
60         -I$(srcdir)/../../LightApp -I$(srcdir)/../../ObjBrowser                         \
61         -I$(srcdir)/../../OBJECT                                                        \
62         -I$(top_builddir)/salome_adm/unix @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
63
64 # linkage flags
65 COMMON_LIBS = $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(QWT_LIBS)           \
66         $(OGL_LIBS) ../../SUIT/libsuit.la ../../CAM/libCAM.la ../../STD/libstd.la       \
67         ../../Qtx/libqtx.la ../../SalomeApp/libSalomeApp.la ../../Event/libEvent.la     \
68         ../../Session/libSalomeSession.la ../../LogWindow/libLogWindow.la               \
69         ../../VTKViewer/libVTKViewer.la ../../TOOLSGUI/libToolsGUI.la                   \
70         ../SALOME_PYQT_GUI/libSalomePyQtGUI.la ../../OCCViewer/libOCCViewer.la          \
71         ../../Plot2d/libPlot2d.la
72
73 # libraries targets
74 lib_LTLIBRARIES = libSalomePyQt.la
75
76 # library sources / rules
77 dist_libSalomePyQt_la_SOURCES = SalomePyQt.cxx
78 nodist_libSalomePyQt_la_SOURCES = $(MOC_FILES) $(SIP_SRC)
79 libSalomePyQt_la_CPPFLAGS = $(COMMON_CPP_FLAGS)
80 libSalomePyQt_la_LIBADD = $(COMMON_LIBS)
81
82 # custom build step: generate C++ wrapping according to $(SIP_FILES)
83 $(SIP_SRC): $(SIP_FILES)
84         $(SIP) $(PYQT_SIPFLAGS) $<
85
86 # custom install step: create symbolic link
87 install-exec-hook: 
88         (cd $(DESTDIR)$(libdir); ln -sf libSalomePyQt.so SalomePyQt.so)
89
90 # custom uninstall step: remove symbolic link
91 uninstall-hook: 
92         rm -f $(DESTDIR)$(libdir)/SalomePyQt.so