Salome HOME
Search runSalome.py instead of runSalome for KERNEL detection
[modules/yacs.git] / idl / Makefile.am
1 # Copyright (C) 2006-2013  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include $(top_srcdir)/adm/unix/make_begin.am
21
22 IDL_FILES = yacsgui.idl
23 IDL_SRC = yacsguiSK.cc
24 BUILT_SOURCES = $(IDL_SRC) yacsgui.hh
25
26 IDLCXXFLAGS = -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GUI_ROOT_DIR)/idl/salome
27
28 IDLPYFLAGS  = -I$(KERNEL_ROOT_DIR)/idl/salome
29
30 EXTRA_DIST = $(IDL_FILES)
31
32 lib_LTLIBRARIES = libSalomeIDLYACS.la
33
34 libSalomeIDLYACS_la_SOURCES = $(IDL_SRC)
35
36 libSalomeIDLYACS_la_LIBADD = \
37         $(OMNIORB_LIBS)
38
39 libSalomeIDLYACS_la_CXXFLAGS = \
40         $(OMNIORB_INCLUDES) \
41         -I$(KERNEL_ROOT_DIR)/include/salome \
42         $(OMNIORB_CXXFLAGS)
43
44 install-exec-local: install-pyidl
45
46 uninstall-local:
47         rm -rf $(DESTDIR)$(salomepythondir)/yacsgui_idl.py
48         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB
49         rm -rf $(DESTDIR)$(salomepythondir)/YACS_ORB__POA
50
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 ; \
56           fi ; \
57         done ;
58
59 dist-hook:
60         rm -f $(distdir)/yacsguiSK.cc
61         rm -f $(distdir)/yacsgui.hh
62
63 clean-local:
64         rm -rf YACS_ORB  YACS_ORB__POA yacsgui.hh  yacsgui_idl.py yacsguiSK.cc
65
66 include $(top_srcdir)/adm/unix/make_end.am