IDLDIR =
endif
-SUBDIRS = $(IDLDIR) adm_local resources src doc bin tools/dlgfactory
+SUBDIRS = $(IDLDIR) adm_local resources src doc bin tools
-DIST_SUBDIRS = idl adm_local resources src doc bin
+DIST_SUBDIRS = idl adm_local resources src doc bin tools
DISTCLEANFILES = a.out aclocal.m4 configure local-install.sh hack_libtool adm_local/unix/config_files/config.guess adm_local/unix/config_files/config.sub adm_local/unix/config_files/depcomp adm_local/unix/config_files/install-sh adm_local/unix/config_files/libtool.m4 adm_local/unix/config_files/ltmain.sh adm_local/unix/config_files/ltoptions.m4 adm_local/unix/config_files/ltsugar.m4 adm_local/unix/config_files/ltversion.m4 adm_local/unix/config_files/lt~obsolete.m4 adm_local/unix/config_files/missing adm_local/unix/config_files/py-compile
src/GUI_PY/Makefile \
resources/Makefile \
idl/Makefile \
+ tools/Makefile \
tools/dlgfactory/Makefile \
Makefile
])
--- /dev/null
+# Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
+SUBDIRS = dlgfactory
include $(top_srcdir)/adm_local/unix/make_common_starter.am
-# moc-files generation
+# moc-files generation (using MOC)
%_moc.cxx: %.hxx
$(MOC) $< -o $@
ui_%.hxx: %.ui
$(UIC) -o $@ $<
+# Program targets
+bin_PROGRAMS = qtester gtester
+
+# QDialog uic files
UIC_FILES_QDIALOG = \
ui_QDialogTest.hxx
-# MOC pre-processing
+# QDialog moc files
MOC_FILES_QDIALOG = \
QDialogTest_moc.cxx
+# GDialog uic files
+UIC_FILES_GDIALOG= \
+ ui_GenericDialog.hxx \
+ ui_GDialogTest.hxx
+
+# GDialog moc files
+MOC_FILES_GDIALOG= \
+ GenericDialog_moc.cxx \
+ GDialogTest_moc.cxx
+
+QDIALOG_TEMPLATES = __QDIALOG__.ui __QDIALOG__.hxx __QDIALOG__.cxx
+GDIALOG_TEMPLATES = __GDIALOG__.ui __GDIALOG__.hxx __GDIALOG__.cxx
+
+# generated sources
BUILT_SOURCES = $(UIC_FILES_QDIALOG) $(UIC_FILES_GDIALOG)
+# extra distributed files
+EXTRA_DIST += $(QDIALOG_TEMPLATES) $(GDIALOG_TEMPLATES) GenericDialog.ui README.txt dlgfactory.sh
+
mostlyclean-local:
- rm -f @builddir@/*_moc.cxx @builddir@/ui_*.hxx
rm @builddir@/QDialogTest*
rm @builddir@/GDialogTest*
+ rm -f @builddir@/*_moc.cxx @builddir@/ui_*.hxx
-QDialogTest.ui: __QDIALOG__.ui __QDIALOG__.hxx __QDIALOG__.cxx dlgfactory.sh
+QDialogTest.hxx QDialogTest.cxx QDialogTest.ui: $(QDIALOG_TEMPLATES) dlgfactory.sh
$(srcdir)/dlgfactory.sh -n QDialogTest -t qdialog
-GDialogTest.ui: __GDIALOG__.ui __GDIALOG__.hxx __GDIALOG__.cxx dlgfactory.sh
+GDialogTest.hxx GDialogTest.cxx GDialogTest.ui : $(GDIALOG_TEMPLATES) dlgfactory.sh
$(srcdir)/dlgfactory.sh -n GDialogTest -t gdialog
-
QT_CXXFLAGS=@QT_INCLUDES@ @QT_MT_INCLUDES@
QT_LIBS=@QT_LIBS@
-# Program targets
-bin_PROGRAMS = qtester gtester
-
# QDialog tester
qtester_SOURCES = \
- qtester.cxx \
+ qtester.cxx
+nodist_qtester_SOURCES = \
QDialogTest.cxx \
- $(MOC_FILES_QDIALOG) $(UIC_FILES_QDIALOG)
+ $(MOC_FILES_QDIALOG) \
+ $(UIC_FILES_QDIALOG)
qtester_CPPFLAGS = \
- $(QT_CXXFLAGS) \
- -I. \
- -I$(srcdir)
+ $(QT_CXXFLAGS)
qtester_LDFLAGS = \
$(QT_LIBS)
-
-# GDialog tester
-MOC_FILES_GDIALOG= \
- GenericDialog_moc.cxx \
- GDialogTest_moc.cxx
-
-UIC_FILES_GDIALOG= \
- ui_GenericDialog.hxx \
- ui_GDialogTest.hxx
-
gtester_SOURCES = \
gtester.cxx \
- GenericDialog.cxx \
+ GenericDialog.hxx \
+ GenericDialog.cxx
+nodist_gtester_SOURCES = \
GDialogTest.cxx \
- $(MOC_FILES_GDIALOG) $(UIC_FILES_GDIALOG)
+ $(MOC_FILES_GDIALOG) \
+ $(UIC_FILES_GDIALOG)
gtester_CPPFLAGS = \
- $(QT_CXXFLAGS) \
- -I. \
- -I$(srcdir)
+ $(QT_CXXFLAGS)
gtester_LDFLAGS = \
$(QT_LIBS)