Salome HOME
cd851519b43b9a45f237e8476506361a49c93fb6
[modules/smesh.git] / adm_local / unix / make_common_starter.am
1 #  Copyright (C) 2007-2008  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 # ============================================================
24 # The following is to avoid PACKAGE_... env variable
25 # redefinition compilation warnings
26 # ============================================================
27 AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
28 AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
29
30 # ============================================================
31 # This file defines the common definitions used in several
32 # Makefile. This file must be included, if needed, by the file
33 # Makefile.am.
34 # ============================================================
35 # Standard directory for installation
36 #
37 salomeincludedir   = $(includedir)/salome
38 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
39 bindir             = $(prefix)/bin/salome
40 salomescriptdir    = $(bindir)
41 salomepythondir    = $(pythondir)/salome
42 salomepyexecdir    = $(pyexecdir)/salome
43
44 # Directory for installing idl files
45 salomeidldir       = $(prefix)/idl/salome
46
47 # Directory for installing resource files
48 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
49
50 # Directories for installing admin files
51 admlocaldir        = $(prefix)/adm_local
52 admlocalunixdir    = $(admlocaldir)/unix
53 admlocalm4dir      = $(admlocaldir)/unix/config_files
54
55 # Shared modules installation directory
56 sharedpkgpythondir = $(salomepythondir)/shared_modules
57
58 # Documentation directory
59 docdir             = $(datadir)/doc/salome
60
61 # common rules
62
63 # meta object implementation files generation (moc)
64 %_moc.cxx: %.h
65         $(MOC) $< -o $@
66
67 # translation (*.qm) files generation (lrelease)
68 %.qm: %.ts
69         $(LRELEASE) $< -qm $@
70
71 # resource files generation (qrcc)
72 qrc_%.cxx: %.qrc
73         $(QRCC) $< -o $@ -name $(*F)
74
75 # qt forms files generation (uic)
76 ui_%.h: %.ui
77         $(UIC) -o $@ $<
78
79 # extra distributed files
80 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
81              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
82
83 # customize clean operation
84 mostlyclean-local:
85         rm -f @builddir@/*_moc.cxx
86         rm -f @builddir@/*.qm
87         rm -f @builddir@/ui_*.h
88         rm -f @builddir@/qrc_*.cxx
89
90 # tests
91 tests: unittest
92
93 unittest: $(UNIT_TEST_PROG)
94         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
95             $(UNIT_TEST_PROG);                     \
96         fi;