1 # Copyright (C) 2007-2010 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 # ============================================================
21 # The following is to avoid PACKAGE_... env variable
22 # redefinition compilation warnings
23 # ============================================================
25 AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
26 AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
28 # ============================================================
29 # This file defines the common definitions used in several
30 # Makefile. This file must be included, if needed, by the file
32 # ============================================================
33 # Standard directory for installation
35 salomeincludedir = $(includedir)/salome
36 libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
37 bindir = $(prefix)/bin/salome
38 purebindir = $(prefix)/bin
39 salomescriptdir = $(bindir)
40 salomepythondir = $(pythondir)/salome
41 salomepyexecdir = $(pyexecdir)/salome
43 # Tests environment folders
44 testsenvirondir = $(prefix)/Tests/environ
45 testsenvironcshdir = $(prefix)/Tests/environ/csh
47 # Directory for installing idl files
48 salomeidldir = $(prefix)/idl/salome
50 # Directory for installing resource files
51 salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@
53 # Directories for installing admin files
54 admlocaldir = $(prefix)/adm_local
55 admlocalunixdir = $(admlocaldir)/unix
56 admlocalm4dir = $(admlocaldir)/unix/config_files
58 # Directory for install cmake files
59 admlocal_cmakedir = $(admlocaldir)/cmake_files
61 # Shared modules installation directory
62 sharedpkgpythondir = $(salomepythondir)/shared_modules
64 # Documentation directory
65 docdir = $(datadir)/doc/salome
69 # meta object implementation files generation (moc)
73 # translation (*.qm) files generation (lrelease)
77 # resource files generation (qrcc)
79 $(QRCC) $< -o $@ -name $(*F)
81 # qt forms files generation (uic)
85 # extra distributed files
86 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
87 $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
89 # customize clean operation
91 rm -f @builddir@/*_moc.cxx
93 rm -f @builddir@/ui_*.h
94 rm -f @builddir@/qrc_*.cxx
99 unittest: $(UNIT_TEST_PROG)
100 @if test "x$(UNIT_TEST_PROG)" != "x"; then \