]> SALOME platform Git repositories - modules/med.git/blob - Makefile.am
Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / Makefile.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 # -* Makefile *- 
23 # Author : Patrick GOLDBRONN (CEA)
24 # Date : 28/06/2001
25 # $Header$
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 if MED_ENABLE_KERNEL
30 if MED_ENABLE_GUI
31   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
32                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files  \
33                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
34 else !MED_ENABLE_GUI
35   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
36                     -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
37 endif
38 else !MED_ENABLE_KERNEL
39 if MED_ENABLE_GUI
40   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
41                     -I adm_local_without_kernel/unix/config_files       \
42                     -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
43 else !MED_ENABLE_GUI
44   ACLOCAL_AMFLAGS = -I adm_local/unix/config_files                      \
45                     -I adm_local_without_kernel/unix/config_files
46 endif
47 endif
48
49 if MED_ENABLE_KERNEL
50   IDLDIR = idl
51 endif
52
53 SUBDIRS = adm_local
54
55 if !MED_ENABLE_KERNEL
56 SUBDIRS += adm_local_without_kernel
57 endif
58
59 SUBDIRS += $(IDLDIR) src doc resources bin
60
61 DIST_SUBDIRS = adm_local adm_local_without_kernel idl src doc resources bin
62
63 DISTCLEANFILES = a.out aclocal.m4 configure 
64
65 salomeinclude_DATA = MED_version.h
66
67 EXTRA_DIST += build_configure clean_configure LICENCE INSTALL README
68
69 dist-hook:
70         rm -rf `find $(distdir) -name CVS`
71
72 if MED_ENABLE_SSTREAM
73   install-data-local: $(pkgincludedir)/SALOMEconfig.h
74 else !MED_ENABLE_SSTREAM
75   install-data-local: $(pkgincludedir)/SALOMEconfig.h $(pkgincludedir)/sstream
76 endif
77
78 $(pkgincludedir)/SALOMEconfig.h: ./salome_adm/unix/SALOMEconfig.h
79         cp -f $^ $(pkgincludedir)
80
81 $(pkgincludedir)/sstream: ./include/salome/sstream
82         cp -f $^ $(pkgincludedir)
83
84 dev_docs:
85         (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)