Salome HOME
Minor documentation and code review corrections (39)
[modules/adao.git] / idl / Makefile.am
1 # Copyright (C) 2008-2023 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 # Author: AndrĂ© Ribes, andre.ribes@edf.fr, EDF R&D
20
21 include $(top_srcdir)/adm_local/make_common_starter.am
22
23 BUILT_SOURCES = ADAO_COMPONENTSK.cc
24 IDL_FILES=ADAO_COMPONENT.idl
25
26 lib_LTLIBRARIES = libADAO_COMPONENT.la
27 salomeidl_DATA = $(IDL_FILES)
28 salomepython_DATA = ADAO_COMPONENT_idl.py
29 libADAO_COMPONENT_la_SOURCES      =
30 nodist_libADAO_COMPONENT_la_SOURCES = ADAO_COMPONENTSK.cc
31 nodist_salomeinclude_HEADERS= ADAO_COMPONENT.hh
32 libADAO_COMPONENT_la_CXXFLAGS     = -I.  $(KERNEL_INCLUDES)
33 libADAO_COMPONENT_la_LIBADD     = $(KERNEL_LIBS)
34 ##########################################################
35 %SK.cc %.hh : %.idl
36         $(OMNIORB_IDL) -bcxx $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $(IDL_INCLUDES) $<
37 %_idl.py : %.idl
38         $(OMNIORB_IDL) -bpython $(IDL_INCLUDES)  $<
39 %PaCO.hxx %PaCO.cxx : %.idl %.xml
40         $(OMNIORB_IDL) -I@KERNEL_ROOT_DIR@/idl/salome -p@PACOPATH@/lib/python -bpaco -Wb$(top_srcdir)/idl/$*.xml,$(srcdir):@PACOPATH@/idl:@KERNEL_ROOT_DIR@/idl/salome $(top_srcdir)/idl/$*.idl
41
42 CLEANFILES = *.hh *SK.cc *.py *.hxx *.cxx
43
44 EXTRA_DIST = $(IDL_FILES)
45
46 clean-local:
47         rm -rf ADAO_COMPONENT ADAO_COMPONENT__POA
48
49 install-data-local:
50         ${mkinstalldirs} $(DESTDIR)$(salomepythondir)
51         cp -R ADAO_COMPONENT ADAO_COMPONENT__POA $(DESTDIR)$(salomepythondir)
52
53 uninstall-local:
54         rm -rf $(DESTDIR)$(salomepythondir)/ADAO_COMPONENT
55         rm -rf $(DESTDIR)$(salomepythondir)/ADAO_COMPONENT__POA