Salome HOME
Merge from V6_main (04/10/2012)
[modules/gui.git] / src / GuiHelpers / Makefile.am
1 # Copyright (C) 2011-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # Author : Guillaume Boulant (EDF/R&D) 
20 #
21
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 # header files 
25 salomeinclude_HEADERS =        \
26         QtHelper.hxx           \
27         SALOME_GuiServices.hxx       \
28         SALOME_AppStudyEditor.hxx     \
29         StandardApp_Module.hxx     \
30         SalomeGuiHelpers.hxx
31
32 # Libraries targets
33 lib_LTLIBRARIES = libSalomeGuiHelpers.la
34
35 dist_libSalomeGuiHelpers_la_SOURCES = \
36         SALOME_GuiServices.cxx         \
37         SALOME_AppStudyEditor.cxx       \
38         StandardApp_Module.cxx
39
40
41 QT_CXXFLAGS=@QT_INCLUDES@ @QT_MT_INCLUDES@
42 CAS_CXXFLAGS=@CAS_CPPFLAGS@ @CAS_CXXFLAGS@
43 BOOST_CPPFLAGS=@BOOST_CPPFLAGS@
44 BOOST_LIBS=@BOOST_LIBS@
45 CORBA_CXXFLAGS=@OMNIORB_CXXFLAGS@ @OMNIORB_INCLUDES@
46 CORBA_LIBS=@OMNIORB_LIBS@
47
48 libSalomeGuiHelpers_la_CPPFLAGS =   \
49         $(QT_CXXFLAGS)              \
50         $(CAS_CXXFLAGS)             \
51         $(BOOST_CPPFLAGS)           \
52         $(CORBA_CXXFLAGS)           \
53         $(KERNEL_CXXFLAGS)          \
54         -I$(srcdir)/../SalomeApp    \
55         -I$(srcdir)/../LightApp     \
56         -I$(srcdir)/../SUIT         \
57         -I$(srcdir)/../Qtx          \
58         -I$(srcdir)/../CAM          \
59         -I$(srcdir)/../STD          \
60         -I$(srcdir)/../OBJECT
61
62
63 libSalomeGuiHelpers_la_LDFLAGS  = \
64         ../SalomeApp/libSalomeApp.la \
65         $(KERNEL_LDFLAGS) -lSalomeKernelHelpers \
66         $(CORBA_LIBS)
67
68 #
69 # =======================================================
70 # Specific definitions for Qt MOC files
71 #
72
73 # moc-files generation
74 %_moc.cxx: %.hxx
75         $(MOC) $< -o $@
76
77 # MOC pre-processing
78 MOC_FILES_HXX = \
79         StandardApp_Module_moc.cxx
80
81 nodist_libSalomeGuiHelpers_la_SOURCES = $(MOC_FILES_HXX)
82
83 EXTRA_DIST+=$(MOC_FILES_HXX:%_moc.cxx=%.hxx)