]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_PYQT/SalomePyQt/Makefile.am
Salome HOME
7fdb22aa49fe1befc973432bc95782e1a5a8b5a7
[modules/gui.git] / src / SALOME_PYQT / SalomePyQt / Makefile.am
1 # Copyright (C) 2007-2012  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
23 #  File   : Makefile.in
24 #  Author : Nicolas REJNERI
25 #  Module : SALOME
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 # extra source files (generated by sip)
30 SIP_API = sipAPISalomePyQt.h
31 SIP_SRC = sipSalomePyQtSalomePyQt.cc            \
32           sipSalomePyQtSALOME_Selection.cc      \
33           sipSalomePyQtQtxAction.cc             \
34           sipSalomePyQtQtxActionGroup.cc        \
35           sipSalomePyQtQtxActionSet.cc          \
36           sipSalomePyQtcmodule.cc
37
38 # Sip definition file
39 SIP_FILES = SalomePyQt.sip
40
41 # extra dist files
42 EXTRA_DIST += $(SIP_FILES)
43
44 # extra clean files
45 CLEANFILES = $(SIP_SRC) $(SIP_API)
46
47 # moc files (generated my moc)
48 MOC_FILES = SalomePyQt_moc.cxx
49
50 # compilation flags
51 COMMON_CPP_FLAGS = $(QT_INCLUDES) $(QWT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES)     \
52         $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS)                \
53         -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -I$(top_builddir)/salomeadn/unix               \
54         -I$(srcdir) -I$(top_builddir)/idl                                                \
55         -I$(srcdir)/../../SUIT -I$(srcdir)/../../CAM -I$(srcdir)/../../STD               \
56         -I$(srcdir)/../../Qtx -I$(srcdir)/../../Event                                    \
57         -I$(srcdir)/../../LogWindow                                                      \
58         -I$(srcdir)/../../VTKViewer                                                      \
59         -I$(srcdir)/../../OCCViewer -I$(srcdir)/../../Plot2d                             \
60         -I$(srcdir)/../SALOME_PYQT_GUILight -I$(srcdir)/../../PyInterp                   \
61         -I$(srcdir)/../../LightApp -I$(srcdir)/../../ObjBrowser                          \
62         -I$(srcdir)/../../OBJECT                                                        
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 ../../Event/libEvent.la                                      \
68         ../../LogWindow/libLogWindow.la                                                  \
69         ../../VTKViewer/libVTKViewer.la                                                  \
70         ../SALOME_PYQT_GUILight/libSalomePyQtGUILight.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_API)
84
85 $(SIP_API): $(SIP_FILES)
86         $(SIP) $(PYQT_SIPFLAGS) $<
87
88 # custom install step: create symbolic link
89 install-exec-hook: 
90         (cd $(DESTDIR)$(libdir); ln -sf libSalomePyQt.so SalomePyQt.so)
91
92 # custom uninstall step: remove symbolic link
93 uninstall-hook: 
94         rm -f $(DESTDIR)$(libdir)/SalomePyQt.so