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 # ============================================================
21 # The following is to avoid PACKAGE_... env variable
22 # redefinition compilation warnings
23 # ============================================================
26 AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
27 AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
28 else !MED_ENABLE_KERNEL
29 AM_CXXFLAGS = -I$(top_builddir)/adm_local_without_kernel -include SALOMEconfig.h
30 AM_CPPFLAGS = -I$(top_builddir)/adm_local_without_kernel -include SALOMEconfig.h
33 # ============================================================
34 # Cmake files wildcard (to add then to the distribution)
35 # ============================================================
36 CMAKEFILES = $(notdir $(wildcard $(srcdir)/CMakeLists.txt))
38 # ============================================================
39 # This file defines the common definitions used in several
40 # Makefile. This file must be included, if needed, by the file
42 # ============================================================
43 # Standard directory for installation
45 salomeincludedir = $(includedir)/salome
46 libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
47 bindir = $(prefix)/bin/salome
48 purebindir = $(prefix)/bin
49 salomescriptdir = $(bindir)
50 salomepythondir = $(pythondir)/salome
51 salomepyexecdir = $(pyexecdir)/salome
53 # Tests environment folders
54 testsenvirondir = $(prefix)/Tests/environ
55 testsenvironcshdir = $(prefix)/Tests/environ/csh
57 # Directory for installing idl files
58 salomeidldir = $(prefix)/idl/salome
60 # Directory for installing resource files
61 salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@
63 # Directories for installing admin files
64 admlocaldir = $(prefix)/adm_local
65 admlocalunixdir = $(admlocaldir)/unix
66 admlocalm4dir = $(admlocaldir)/unix/config_files
68 # Shared modules installation directory
69 sharedpkgpythondir = $(salomepythondir)/shared_modules
71 # Documentation directory
72 docdir = $(datadir)/doc/salome
74 EXTRA_DIST = $(CMAKEFILES)
79 unittest: $(UNIT_TEST_PROG)
80 @if test "x$(UNIT_TEST_PROG)" != "x"; then \
81 for exe in $(UNIT_TEST_PROG) ; do \
82 env top_srcdir=@top_srcdir@ top_builddir=@top_builddir@ ./$$exe; \
84 for f in `find -name "UnitTestsResult*"` XXX ; do \
85 if [[ $$f == XXX ]] ; then continue ; fi ; \
86 if [[ `awk '{ print $$1 }' $$f` != "OK" ]]; then \
91 if [[ $$err == 1 ]] ; then \