1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # author: Guillaume Boulant (EDF/R&D, 2012)
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
25 # ---------------------------------------------------------
26 # Generation rules to create moc files from QObject headers
27 # and form source files from ui files
28 # ---------------------------------------------------------
36 QT_CXXFLAGS = @QT_INCLUDES@ @QT_MT_INCLUDES@
37 CAS_CXXFLAGS = @CAS_CPPFLAGS@ @CAS_CXXFLAGS@
38 OMNIORB_CXXFLAGS = @CORBA_INCLUDES@ @CORBA_CXXFLAGS@
39 BOOST_CXXFLAGS=@BOOST_CPPFLAGS@
41 QT_LDFLAGS = $(QT_MT_LIBS)
42 OMNIORB_LIBS=@OMNIORB_LIBS@
45 # ---------------------------------------------------------
46 # Declaration of form files generated by UIC and MOC files
47 # as BUILT_SOURCES to be used in the building process.
48 # ---------------------------------------------------------
51 ui_GenericDialog.hxx \
53 ui_DlgUseInWorkspace.hxx \
54 ui_DlgChangeUnderlyingMesh.hxx \
58 GenericDialog_moc.cxx \
60 DlgUseInWorkspace_moc.cxx \
61 DlgChangeUnderlyingMesh_moc.cxx \
64 BUILT_SOURCES = $(UIC_FILES)
67 # ---------------------------------------------------------
68 # Declaration of sources files to the building process
69 # ---------------------------------------------------------
70 # MOC files and UIC files should be added to the list of undistributed
71 # source files with something like (where <MyLibrary> should be
72 # replaced by the name of the product declared by the directive
75 lib_LTLIBRARIES = libMEDOPGUI_dialogs.la
77 nodist_libMEDOPGUI_dialogs_la_SOURCES = $(MOC_FILES) $(UIC_FILES)
79 dist_libMEDOPGUI_dialogs_la_SOURCES = \
82 DlgUseInWorkspace.cxx \
83 DlgChangeUnderlyingMesh.cxx \
86 libMEDOPGUI_dialogs_la_CPPFLAGS = \
95 libMEDOPGUI_dialogs_la_LDFLAGS = \
96 -no-undefined -version-info=0:0:0 \
98 $(GUI_LDFLAGS) -lSalomeGuiHelpers \
101 salomeinclude_HEADERS = \
104 DlgUseInWorkspace.hxx \
105 DlgChangeUnderlyingMesh.hxx \
110 # ---------------------------------------------------------
112 # ---------------------------------------------------------
115 bin_PROGRAMS = dlgTester
117 dlgTester_SOURCES = \
120 #nodist_dlgTester_SOURCES = $(UIC_FILES)
122 dlgTester_CPPFLAGS = \
125 # WARN: for the building of binary executable programs, you must use
126 # the LDADD option instead of the LDFLAGS used for library. The impact
127 # is in the expression of dependencies between the executable program
128 # and the library it relies on. In parallel construction (e.g. make
129 # -j8), the makefile try to generate the program while the library
130 # (file .la) is not generated.
133 libMEDOPGUI_dialogs.la \
135 $(KERNEL_LDFLAGS) -lSalomeKernelHelpers -lSALOMEBasics -lSALOMELocalTrace \
136 -lSalomeNS -lSalomeLifeCycleCORBA -lSalomeContainer -lSalomeNotification \
137 -lSalomeGenericObj -lSalomeIDLKernel \
138 $(GUI_LDFLAGS) -lSalomeGuiHelpers -lSalomeApp
142 rm -f @builddir@/*_moc.cxx @builddir@/ui_*.hxx
144 EXTRA_DIST += $(UIC_FILES:ui_%.hxx=%.ui)