Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/gui.git] / tools / dlgfactory / Makefile.am
1 # Copyright (C) 2010-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 include $(top_srcdir)/adm_local/unix/make_common_starter.am
22
23 # moc-files generation (using MOC)
24 %_moc.cxx: %.hxx
25         $(MOC) $< -o $@
26
27 # Qt form files generation (using UIC)
28 ui_%.hxx: %.ui
29         $(UIC) -o $@ $<
30
31 # Program targets
32 bin_PROGRAMS = qtester gtester
33
34 # QDialog uic files
35 UIC_FILES_QDIALOG = \
36         ui_QDialogTest.hxx
37
38 # QDialog moc files
39 MOC_FILES_QDIALOG = \
40         QDialogTest_moc.cxx
41
42 # GDialog uic files
43 UIC_FILES_GDIALOG= \
44         ui_GenericDialog.hxx \
45         ui_GDialogTest.hxx
46
47 # GDialog moc files
48 MOC_FILES_GDIALOG= \
49         GenericDialog_moc.cxx \
50         GDialogTest_moc.cxx
51
52 QDIALOG_TEMPLATES = __QDIALOG__.ui __QDIALOG__.hxx __QDIALOG__.cxx
53 GDIALOG_TEMPLATES = __GDIALOG__.ui __GDIALOG__.hxx __GDIALOG__.cxx
54
55 # generated sources
56 BUILT_SOURCES = $(UIC_FILES_QDIALOG) $(UIC_FILES_GDIALOG)
57
58 # extra distributed files
59 EXTRA_DIST += $(QDIALOG_TEMPLATES) $(GDIALOG_TEMPLATES) GenericDialog.ui README.txt dlgfactory.py
60
61 mostlyclean-local:
62         rm @builddir@/QDialogTest*
63         rm @builddir@/GDialogTest*
64         rm -f @builddir@/*_moc.cxx @builddir@/ui_*.hxx
65
66 QDialogTest.hxx QDialogTest.cxx QDialogTest.ui: $(QDIALOG_TEMPLATES) dlgfactory.py
67         $(srcdir)/dlgfactory.py -s -n QDialogTest -t qdialog
68
69 GDialogTest.hxx GDialogTest.cxx GDialogTest.ui : $(GDIALOG_TEMPLATES) dlgfactory.py
70         $(srcdir)/dlgfactory.py -s -n GDialogTest -t gdialog
71
72 QT_CXXFLAGS=@QT_INCLUDES@ @QT_MT_INCLUDES@
73 QT_LIBS=@QT_LIBS@
74
75 # QDialog tester
76 qtester_SOURCES = \
77         qtester.cxx
78 nodist_qtester_SOURCES =  \
79         QDialogTest.cxx \
80         $(MOC_FILES_QDIALOG) \
81         $(UIC_FILES_QDIALOG)
82
83 qtester_CPPFLAGS = \
84         $(QT_CXXFLAGS) \
85         -I.
86
87 qtester_LDFLAGS = \
88         $(QT_LIBS)
89
90 gtester_SOURCES = \
91         gtester.cxx \
92         GenericDialog.hxx \
93         GenericDialog.cxx
94 nodist_gtester_SOURCES = \
95         GDialogTest.cxx \
96         $(MOC_FILES_GDIALOG) \
97         $(UIC_FILES_GDIALOG)
98
99 gtester_CPPFLAGS = \
100         $(QT_CXXFLAGS) \
101         -I@srcdir@ \
102         -I.
103
104 gtester_LDFLAGS = \
105         $(QT_LIBS)