-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-# -* Makefile *-
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# -* Makefile *-
# Author : Patrick GOLDBRONN (CEA)
# Date : 28/06/2001
# $Header$
#
-
include $(top_srcdir)/adm_local/unix/make_common_starter.am
-SUBDIRS = adm_local
+if MED_ENABLE_KERNEL
+if MED_ENABLE_GUI
+ ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+ -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
+ -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
+else !MED_ENABLE_GUI
+ ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+ -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
+endif
+else !MED_ENABLE_KERNEL
+if MED_ENABLE_GUI
+ ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+ -I adm_local_without_kernel/unix/config_files \
+ -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
+else !MED_ENABLE_GUI
+ ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+ -I adm_local_without_kernel/unix/config_files
+endif
+endif
if MED_ENABLE_KERNEL
- SUBDIRS+= idl
+ IDLDIR = idl
endif
-SUBDIRS+= src
+SUBDIRS = adm_local
-if MED_ENABLE_GUI
- SUBDIRS+= doc
+if !MED_ENABLE_KERNEL
+SUBDIRS += adm_local_without_kernel
endif
-SUBDIRS+= resources bin
-DIST_SUBDIRS= adm_local adm_local_without_kernel idl src doc resources bin
+SUBDIRS += $(IDLDIR) src doc resources bin
+
+DIST_SUBDIRS = adm_local adm_local_without_kernel idl src doc resources bin
-DISTCLEANFILES= a.out aclocal.m4 configure
+DISTCLEANFILES = a.out aclocal.m4 configure
-EXTRA_DIST+= build_configure clean_configure LICENCE INSTALL README
+salomeinclude_DATA = MED_version.h
+
+EXTRA_DIST += build_configure clean_configure LICENCE INSTALL README
dist-hook:
- rm -rf `find . -name CVS`
+ rm -rf `find $(distdir) -name CVS`
if MED_ENABLE_SSTREAM
install-data-local: $(pkgincludedir)/SALOMEconfig.h
else !MED_ENABLE_SSTREAM
- install-data-local: $(pkgincludedir)/SALOMEconfig.h $(pkgincludedir)/sstream $(pkgincludedir)/MED_version.h
+ install-data-local: $(pkgincludedir)/SALOMEconfig.h $(pkgincludedir)/sstream
endif
$(pkgincludedir)/SALOMEconfig.h: ./salome_adm/unix/SALOMEconfig.h
$(pkgincludedir)/sstream: ./include/salome/sstream
cp -f $^ $(pkgincludedir)
-$(pkgincludedir)/MED_version.h: MED_version.h
- cp -f $^ $(pkgincludedir)
+dev_docs:
+ (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)