Salome HOME
Fix make check with Python 2.7
[modules/yacs.git] / src / salomegui / Makefile.am
1 # Copyright (C) 2006-2012  CEA/DEN, EDF R&D
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 include $(top_srcdir)/adm/unix/make_begin.am
21
22 # header files 
23 salomeinclude_HEADERS = \
24         YACSExport.hxx \
25         Yacsgui.hxx
26
27 # Libraries targets
28 lib_LTLIBRARIES = libYACS.la
29
30 dist_libYACS_la_SOURCES = \
31     Yacsgui.cxx \
32     Yacsgui_DataModel.hxx \
33     Yacsgui_Resource.cxx \
34     Yacsgui_Resource.hxx \
35     Yacsgui_DataModel.cxx
36
37 # MOC pre-processing
38 MOC_FILES = \
39     Yacsgui_moc.cxx
40
41 nodist_libYACS_la_SOURCES = $(MOC_FILES)
42
43 libYACS_la_CXXFLAGS = \
44         $(THREAD_DEF) \
45         $(PYTHON_CPPFLAGS) \
46         $(OMNIORB_CXXFLAGS) \
47         $(OMNIORB_INCLUDES) \
48         $(LIBXML_INCLUDES) \
49         $(BOOST_CPPFLAGS) \
50         -I$(KERNEL_ROOT_DIR)/include/salome \
51         -I$(GUI_ROOT_DIR)/include/salome \
52         -I$(srcdir)/../bases \
53         -I$(srcdir)/../engine \
54         -I$(srcdir)/../runtime \
55         -I$(srcdir)/../yacsloader \
56         -I$(srcdir)/../hmi \
57         -I$(srcdir)/../salomewrap \
58         -I$(srcdir)/../genericgui \
59         -I../genericgui \
60         -I../../idl \
61         $(qt4_cppflags) \
62         $(qsci4_cppflags) \
63         @GRAPHVIZ_CPPFLAGS@
64
65 libYACS_la_LDFLAGS  = \
66          @GRAPHVIZ_LDFLAGS@ \
67          -L$(GUI_ROOT_DIR)/lib/salome -L$(KERNEL_ROOT_DIR)/lib/salome \
68          $(qt4_ldflags) $(qsci4_ldflags)
69
70 libYACS_la_LIBADD  = \
71         ../genericgui/libGenericGui.la \
72         -lEvent \
73         $(qt4_libs) $(qsci4_libs) \
74         -lSalomeApp -lSalomeSession
75
76 # resources files
77
78 ICONS =  \
79         resources/YACSSchemaCatalog.xml \
80         resources/YACSCatalog.xml \
81         resources/ModuleYacs.png \
82         resources/ExecYACS.png
83
84 # resources files
85 nodist_salomeres_DATA = \
86         YACS_msg_en.qm  \
87         YACS_msg_fr.qm  \
88         resources/SalomeApp.xml
89
90 QMFILES = \
91         resources/YACS_msg_en.ts \
92         resources/YACS_msg_fr.ts
93
94 dist_salomeres_DATA = $(QMFILES) ${ICONS}
95
96 ui_%.h: %.ui
97         $(QT_UIC) $< -o $@
98
99 # --------------------------------------------
100 # *.h --> *_moc.cxx
101 # --------------------------------------------
102
103 SUFFIXES = .hxx _moc.cxx .qrc _qrc.cxx
104
105 .hxx_moc.cxx :
106         $(QT_MOC) -p . -o $@ $<
107
108 .qrc_qrc.cxx :
109         $(QT_RCC) -name $(*F)  $< -o $@
110
111 #.ui.h :
112 #       $(QT_UIC) -o $@ $<
113
114
115 clean-local-qt :
116         rm -f *_moc.cxx *_qrc.cxx
117
118
119 clean-local: clean-local-qt
120         rm -f YACS_msg_en.qm YACS_msg_fr.qm