Salome HOME
ef8500cd73ad479821d86ca137ba78010e7f6663
[modules/yacs.git] / src / wrappergen / src / HXX2SALOME_GENERIC_CLASS_NAME_SRC / idl / Makefile.am
1 # Copyright (C) 2006-2023  CEA, EDF
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, or (at your option) any later version.
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_local/unix/make_common_starter.am
21
22
23 IDL_FILES = \
24   SALOME_Component.idl \
25   SALOME_Exception.idl \
26   SALOME_Comm.idl \
27   SALOME_GenericObj.idl \
28   SALOMEDS.idl \
29   SALOMEDS_Attributes.idl \
30   ${dummy}
31
32 IDL_SRC = \
33   SALOME_ComponentSK.cc \
34   SALOME_ExceptionSK.cc \
35   SALOME_CommSK.cc \
36   SALOME_GenericObjSK.cc \
37   SALOMEDSSK.cc \
38   SALOMEDS_AttributesSK.cc \
39   ${dummy}
40
41 USE_MED=0
42
43 IDL_FILES += \
44   HXX2SALOME_GENERIC_CLASS_NAME_Gen.idl
45 IDL_SRC += \
46   HXX2SALOME_GENERIC_CLASS_NAME_GenSK.cc
47
48 lib_LIBRARIES = libHXX2SALOME_GENERIC_CLASS_NAMESK.a
49
50 AM_CXXFLAGS = -fPIC -DPIC
51 libHXX2SALOME_GENERIC_CLASS_NAMESK_a_SOURCES = $(IDL_SRC)
52 libHXX2SALOME_GENERIC_CLASS_NAMESK_a_CPPFLAGS = \
53         -I$(top_builddir)/adm_local/unix \
54         -I$(top_builddir)/idl \
55         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
56
57 salomeidl_DATA = compo1_Gen.idl
58
59 # These variables defines the building process of CORBA files
60 OMNIORB_IDL         = @OMNIORB_IDL@
61 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
62 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_builddir)/salome/idl -I${srcdir} -I${KERNEL_ROOT_DIR}/idl/salome -DXXX
63
64 %SK.cc %.hh: ${srcdir}/%.idl
65         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
66
67 %SK.cc %.hh: ${KERNEL_ROOT_DIR}/idl/salome/%.idl
68         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
69
70 %SK.cc %.hh: ${MED_ROOT_DIR}/idl/salome/%.idl
71         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
72
73 mostlyclean-local:
74         -rm -f *.hh *.cc .depidl
75
76 # we use cpp to generate dependencies between idl files.
77 # option x c tells the preprocessor to consider idl as a c file.
78 # if an idl is modified, all idl dependencies are rebuilt
79
80 .depidl: $(IDL_FILES)
81         @echo "" > $@
82         @for dep in $^ dummy; do \
83           if [ $$dep != "dummy" ]; then \
84             echo Building dependencies for $$dep; \
85             $(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I${KERNEL_ROOT_DIR}/idl/salome $$dep 2>/dev/null | \
86             sed 's/\.o/\SK.cc/' >>$@; \
87           fi; \
88         done ;
89
90 -include .depidl
91
92 #