1 # Copyright (C) 2006-2013 CEA/DEN, EDF R&D
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 include $(top_srcdir)/adm/unix/make_begin.am
22 IDL_FILES = yacsgui.idl
23 IDL_SRC = yacsguiSK.cc
24 BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
26 IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
28 IDLPYFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome
30 EXTRA_DIST = $(IDL_FILES)
32 lib_LTLIBRARIES = libSalomeIDLYACS.la
34 libSalomeIDLYACS_la_SOURCES = $(IDL_SRC)
36 libSalomeIDLYACS_la_LIBADD = \
39 libSalomeIDLYACS_la_CXXFLAGS = \
41 -I$(KERNEL_ROOT_DIR)/include/salome \
44 install-exec-local: install-pyidl
47 rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
48 rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
49 rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
51 install-pyidl: $(IDL_FILES)
52 $(INSTALL) -d $(DESTDIR)$(salomepythondir)
53 @for file in $^ dummy; do \
54 if [ $$file != "dummy" ]; then \
55 $(OMNIORB_IDL) -bpython $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
60 rm -f $(distdir)/yacsguiSK.cc
61 rm -f $(distdir)/yacsgui.hh
64 rm -rf YACS_ORB YACS_ORB__POA yacsgui.hh yacsgui_idl.py yacsguiSK.cc
66 include $(top_srcdir)/adm/unix/make_end.am