Salome HOME
a1561d992e5c7adcc06dabebbd60ebf4bfc44e95
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUI / 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 ######################
29
30 # library target
31 lib_LTLIBRARIES = libSalomePyQtGUI.la
32
33 # extra source files (generated by sip)
34 SIP_SRC   = sipAPISalomePyQtGUI.h       \
35             sipSalomePyQtGUIcmodule.cc
36
37 # Sip definition file
38 SIP_FILES = SALOME_PYQT_GUI.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 = SALOME_PYQT_Module_moc.cxx
48
49 # exported header files
50 salomeinclude_HEADERS =         \
51         SALOME_PYQT_GUI.h       \
52         SALOME_PYQT_PyInterp.h  \
53         SALOME_PYQT_Module.h
54
55 # library sources
56 dist_libSalomePyQtGUI_la_SOURCES =      \
57         SALOME_PYQT_PyInterp.cxx        \
58         SALOME_PYQT_Module.cxx
59 nodist_libSalomePyQtGUI_la_SOURCES = $(MOC_FILES) $(SIP_SRC)
60
61 # compilation flags
62 libSalomePyQtGUI_la_CPPFLAGS = $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES)        \
63         $(CAS_CPPFLAGS) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS)               \
64         -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ -DCALL_OLD_METHODS                            \
65         -I@builddir@ -I$(srcdir)/../../PyInterp -I$(srcdir)/../../SalomeApp             \
66         -I$(srcdir)/../../SUIT -I$(srcdir)/../../Qtx -I$(srcdir)/../../LightApp         \
67         -I$(srcdir)/../../Plot2d -I$(srcdir)/../../OCCViewer                            \
68         -I$(srcdir)/../../SalomeApp -I$(srcdir)/../../CAM -I$(srcdir)/../../STD         \
69         -I$(top_builddir)/salome_adm/unix @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
70
71 # linkage flags
72 libSalomePyQtGUI_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS)        \
73         $(OGL_LIBS) ../../PyInterp/libPyInterp.la ../../SalomeApp/libSalomeApp.la       \
74         ../../OCCViewer/libOCCViewer.la ../../Plot2d/libPlot2d.la
75
76 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
77 $(SIP_SRC): $(SIP_FILES)
78         $(SIP) $(PYQT_SIPFLAGS) $<
79
80 # extra dependency (SALOME_PYQT_Module.cxx depends on header files generated by sip)
81 $(dist_libSalomePyQtGUI_la_SOURCES): $(SIP_SRC)
82