Salome HOME
1beb8d8713b062eb0f93b16da01d9051c504e629
[samples/atomic.git] / ATOMIC_SRC / adm_local / unix / make_common_starter.am
1 #  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
21
22 # ============================================================
23 # The following is to avoid PACKAGE_... env variable
24 # redefinition compilation warnings
25 # ============================================================
26 AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
27 AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
28
29 # ============================================================
30 # This file defines the common definitions used in several
31 # Makefile. This file must be included, if needed, by the file
32 # Makefile.am.
33 # ============================================================
34 # Standard directory for installation
35 #
36 salomeincludedir   = $(includedir)/salome
37 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
38 bindir             = $(prefix)/bin/salome
39 salomescriptdir    = $(bindir)
40 salomepythondir    = $(pythondir)/salome
41 salomepyexecdir    = $(pyexecdir)/salome
42
43 # Directory for installing resource files
44 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
45
46 # Directories for installing admin files
47 admlocaldir        = $(prefix)/adm_local
48 admlocalunixdir    = $(admlocaldir)/unix
49 admlocalm4dir      = $(admlocaldir)/unix/config_files
50
51 # Shared modules installation directory
52 sharedpkgpythondir = $(salomepythondir)/shared_modules
53
54 # Documentation directory
55 docdir             = $(datadir)/doc/salome
56
57 # common rules
58
59 # meta object implementation files generation (moc)
60 %_moc.cxx: %.h
61         $(MOC) $< -o $@
62
63 # translation (*.qm) files generation (lrelease)
64 %.qm: resources/%.ts
65         $(LRELEASE) $< -qm $@
66
67 # resource files generation (qrcc)
68 qrc_%.cxx: %.qrc
69         $(QRCC) $< -o $@ -name $(*F)
70
71 # qt forms files generation (uic)
72 ui_%.h: %.ui
73         $(UIC) -o $@ $<
74
75 # extra distributed files
76 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
77              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=resources/%.ts)
78
79 # customize clean operation
80 mostlyclean-local:
81         rm -f @builddir@/*_moc.cxx
82         rm -f @builddir@/*.qm
83         rm -f @builddir@/ui_*.h
84         rm -f @builddir@/qrc_*.cxx
85
86 # tests
87 tests: unittest
88
89 unittest: $(UNIT_TEST_PROG)
90         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
91             $(UNIT_TEST_PROG);                     \
92         fi;