Salome HOME
Merge from V6_main_20120808 08Aug12
[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 ui_%.h: %.ui
41         ${QTDIR}/bin/uic $< -o $@
42
43 .hxx_moc.cxx :
44         ${QTDIR}/bin/moc -p . -o $@ $<
45
46 %_moc.cxx: %.hxx
47         ${QTDIR}/bin/moc $< -o $@
48
49 .qrc_qrc.cxx :
50         ${QTDIR}/bin/rcc -name $(*F)  $< -o $@
51
52 clean-local-qt :
53         rm -f *_moc.cxx *_qrc.cxx ui_*.h
54
55 clean-local: clean-local-qt
56
57 # End Of Qt Part
58
59 nodist_libMEDGUI_la_SOURCES= $(MOC_FILES)
60
61 libMEDGUI_la_CPPFLAGS= $(QT_INCLUDES) $(VTK_INCLUDES) @CAS_CPPFLAGS@ $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) \
62         ${KERNEL_CXXFLAGS} ${GUI_CXXFLAGS} \
63         @CORBA_INCLUDES@ @CORBA_CXXFLAGS@ \
64         -I$(top_builddir) -I$(top_builddir)/idl -I$(srcdir)/../MEDCoupling -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Bases \
65         -I$(srcdir)/../MEDCoupling -I$(srcdir)/../MEDLoader -I$(srcdir)/../MEDCalculator
66
67 libMEDGUI_la_LDFLAGS= \
68         $(QT_MT_LIBS) $(CAS_KERNEL) $(BOOST_LIBS) \
69         ../../idl/libSalomeIDLMED.la ../MEDCalculator/libmedcalculator.la \
70         $(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace \
71         $(GUI_LDFLAGS) -lSalomeApp -lCAM -lLightApp -lqtx -lsuit -lSalomeObject
72
73 # .po files to transform in .qm
74 nodist_salomeres_DATA= \
75         MED_images.qm \
76         MED_msg_fr.qm \
77         MED_msg_en.qm