2006-05-06 14:44:32 +06:00
|
|
|
# Copyright (C) 2005 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
|
|
|
|
#
|
2006-06-01 17:32:40 +06:00
|
|
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2006-05-06 14:44:32 +06:00
|
|
|
#
|
2003-05-12 20:51:31 +06:00
|
|
|
#
|
|
|
|
# generate dependencies for idl file :
|
|
|
|
#
|
|
|
|
|
|
|
|
# source path
|
|
|
|
top_srcdir=@top_srcdir@
|
|
|
|
top_builddir=..
|
|
|
|
srcdir=@srcdir@
|
2004-06-16 21:24:55 +06:00
|
|
|
VPATH=.:${KERNEL_ROOT_DIR}/idl/salome
|
2003-05-12 20:51:31 +06:00
|
|
|
|
|
|
|
@COMMENCE@
|
|
|
|
|
|
|
|
IDL_FILES = \
|
2004-12-01 15:39:14 +05:00
|
|
|
GEOM_Gen.idl \
|
|
|
|
GEOM_Superv.idl
|
2003-05-12 20:51:31 +06:00
|
|
|
|
|
|
|
PY_CLIENT_IDL = $(IDL_FILES)
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
LIB_LOCATION_SUFFIX=@LIB_LOCATION_SUFFIX@
|
|
|
|
|
2003-05-12 20:51:31 +06:00
|
|
|
# we copy all idl file in $(top_builddir)/idl
|
2004-06-16 21:24:55 +06:00
|
|
|
inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
2003-05-12 20:51:31 +06:00
|
|
|
|
2004-06-16 21:24:55 +06:00
|
|
|
$(top_builddir)/idl/salome:
|
|
|
|
mkdir $@
|
|
|
|
|
|
|
|
$(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
|
2003-05-12 20:51:31 +06:00
|
|
|
# $(CP) $< $@
|
2004-06-16 21:24:55 +06:00
|
|
|
cp -f $^ $(top_builddir)/idl/salome
|
2003-05-12 20:51:31 +06:00
|
|
|
|
|
|
|
|
|
|
|
lib: pyidl
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
PYTHON_BUILD_SITE=$(top_builddir)/lib$(LIB_LOCATION_SUFFIX)/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
|
2003-05-12 20:51:31 +06:00
|
|
|
|
|
|
|
pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
|
|
|
|
|
|
|
|
$(PYTHON_BUILD_SITE):
|
|
|
|
$(INSTALL) -d $@
|
|
|
|
|
2004-06-16 21:24:55 +06:00
|
|
|
$(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
|
2003-05-12 20:51:31 +06:00
|
|
|
$(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
|
|
|
|
|
|
|
|
|
|
|
|
# install python client (generated from idl file
|
|
|
|
install: install-pyidl install-idl
|
|
|
|
|
|
|
|
# create directory $(idldir) and copy idl files into it
|
2004-06-16 21:24:55 +06:00
|
|
|
install-idl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
2003-05-12 20:51:31 +06:00
|
|
|
$(INSTALL) -d $(idldir)
|
|
|
|
$(INSTALL_DATA) $^ $(idldir)
|
|
|
|
|
|
|
|
|
2004-06-16 21:24:55 +06:00
|
|
|
install-pyidl: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
2003-05-12 20:51:31 +06:00
|
|
|
$(INSTALL) -d $(PYTHON_SITE_INSTALL)
|
|
|
|
@for file in $^ dummy; do \
|
|
|
|
if [ $$file != "dummy" ]; then \
|
|
|
|
$(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
|
|
|
|
fi ; \
|
|
|
|
done ;
|
|
|
|
|
|
|
|
#@ CONCLUDE @
|
|
|
|
|
|
|
|
cleandep:
|
|
|
|
-$(RM) .dep*
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
-$(RM) *.py
|
2004-06-16 21:24:55 +06:00
|
|
|
-$(RM) $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
2003-05-12 20:51:31 +06:00
|
|
|
-$(RM) Makefile
|
|
|
|
|