Salome HOME
Merge from V6_main (04/10/2012)
[modules/med.git] / src / MEDGUI / Makefile.am
1 # Copyright (C) 2007-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
20 #  MED MEDGUI : MED component GUI implemetation
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 # Libraries targets
25 lib_LTLIBRARIES= libMEDGUI.la
26
27 UIC_FILES = ui_MEDGUIFileContentDial.h ui_MEDGUISelectComponents.h
28
29 BUILT_SOURCES = $(UIC_FILES)
30
31 EXTRA_DIST+= MEDGUIFileContentDial.ui MEDGUISelectComponents.ui
32
33 dist_libMEDGUI_la_SOURCES = MEDGUIFileContentDial.h MEDGUISelection.hxx \
34         MEDGUI.h MEDGUI.cxx MEDGUIFileContentDial.cxx MEDGUISelection.cxx \
35         MEDGUISelectComponents.h MEDGUISelectComponents.cxx MEDGUIDataBaseDockWidget.hxx \
36         MEDGUIDataBaseDockWidget.cxx
37
38 MOC_FILES= MEDGUI_moc.cxx MEDGUIFileContentDial_moc.cxx MEDGUISelectComponents_moc.cxx
39
40 # meta object implementation files generation (moc)
41 %_moc.cxx: %.h
42         $(MOC) $< -o $@
43
44 # translation (*.qm) files generation (lrelease)
45 %.qm: %.ts
46         $(LRELEASE) $< -qm $@
47
48 EXTRA_DIST += $(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.ts)
49
50 ui_%.h: %.ui
51         ${QTDIR}/bin/uic $< -o $@
52
53 .hxx_moc.cxx :
54         ${QTDIR}/bin/moc -p . -o $@ $<
55
56 .qrc_qrc.cxx :
57         ${QTDIR}/bin/rcc -name $(*F)  $< -o $@
58
59 clean-local-qt :
60         rm -f *_moc.cxx *_qrc.cxx ui_*.h *.qm
61
62 clean-local: clean-local-qt
63
64 # End Of Qt Part
65
66 nodist_libMEDGUI_la_SOURCES= $(MOC_FILES)
67
68 libMEDGUI_la_CPPFLAGS= $(QT_INCLUDES) $(VTK_INCLUDES) @CAS_CPPFLAGS@ $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) \
69         ${KERNEL_CXXFLAGS} ${GUI_CXXFLAGS} \
70         @CORBA_INCLUDES@ @CORBA_CXXFLAGS@ \
71         -I$(top_builddir) -I$(top_builddir)/idl -I$(srcdir)/../MEDCoupling -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Bases \
72         -I$(srcdir)/../MEDCoupling -I$(srcdir)/../MEDLoader -I$(srcdir)/../MEDCalculator
73
74 libMEDGUI_la_LDFLAGS = \
75         $(QT_MT_LIBS) $(CAS_KERNEL) $(BOOST_LIBS) \
76         $(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace \
77         $(GUI_LDFLAGS) -lSalomeApp -lCAM -lLightApp -lqtx -lsuit -lSalomeObject
78
79 libMEDGUI_la_LIBADD = \
80         $(top_builddir)/idl/libSalomeIDLMED.la \
81         $(top_builddir)/src/MEDCalculator/libmedcalculator.la
82
83
84 # .po files to transform in .qm
85 nodist_salomeres_DATA= \
86         MED_images.qm \
87         MED_msg_fr.qm \
88         MED_msg_en.qm