Salome HOME
b7090df21152e4b20d5be400e5c5fad0f5a5bee6
[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 # Program targets
24 bin_PROGRAMS = qtester gtester
25
26 # QDialog uic files
27 UIC_FILES_QDIALOG = \
28         ui_QDialogTest.h
29
30 # QDialog moc files
31 MOC_FILES_QDIALOG = \
32         QDialogTest_moc.cxx
33
34 # GDialog uic files
35 UIC_FILES_GDIALOG= \
36         ui_GenericDialog.h \
37         ui_GDialogTest.h
38
39 # GDialog moc files
40 MOC_FILES_GDIALOG= \
41         GenericDialog_moc.cxx \
42         GDialogTest_moc.cxx
43
44 QDIALOG_TEMPLATES = __QDIALOG__.ui __QDIALOG__.h __QDIALOG__.cxx
45 GDIALOG_TEMPLATES = __GDIALOG__.ui __GDIALOG__.h __GDIALOG__.cxx
46 QDIALOG_FILES = QDialogTest.h QDialogTest.cxx QDialogTest.ui
47 GDIALOG_FILES = GDialogTest.h GDialogTest.cxx GDialogTest.ui 
48
49 # generated sources
50 BUILT_SOURCES = $(UIC_FILES_QDIALOG) $(UIC_FILES_GDIALOG)
51
52 # extra distributed files
53 EXTRA_DIST += $(QDIALOG_TEMPLATES) $(GDIALOG_TEMPLATES) GenericDialog.ui README.txt dlgfactory.py
54
55 mostlyclean-local:
56         rm -f $(QDIALOG_FILES) $(GDIALOG_FILES)
57         rm -f @builddir@/*_moc.cxx @builddir@/ui_*.h
58
59 $(QDIALOG_FILES): $(QDIALOG_TEMPLATES) dlgfactory.py
60         $(srcdir)/dlgfactory.py -s -n QDialogTest -t qdialog
61
62 $(GDIALOG_FILES): $(GDIALOG_TEMPLATES) dlgfactory.py
63         $(srcdir)/dlgfactory.py -s -n GDialogTest -t gdialog
64
65 QT_CXXFLAGS=@QT_INCLUDES@ @QT_MT_INCLUDES@
66 QT_LIBS=@QT_LIBS@
67
68 # QDialog tester
69 qtester_SOURCES = \
70         qtester.cxx
71 nodist_qtester_SOURCES =  \
72         QDialogTest.cxx \
73         $(MOC_FILES_QDIALOG) \
74         $(UIC_FILES_QDIALOG)
75
76 qtester_CPPFLAGS = \
77         $(QT_CXXFLAGS) \
78         -I.
79
80 qtester_LDFLAGS = \
81         $(QT_LIBS)
82
83 gtester_SOURCES = \
84         gtester.cxx \
85         GenericDialog.h \
86         GenericDialog.cxx
87 nodist_gtester_SOURCES = \
88         GDialogTest.cxx \
89         $(MOC_FILES_GDIALOG) \
90         $(UIC_FILES_GDIALOG)
91
92 gtester_CPPFLAGS = \
93         $(QT_CXXFLAGS) \
94         -I@srcdir@ \
95         -I.
96
97 gtester_LDFLAGS = \
98         $(QT_LIBS)