Salome HOME
Issue 0020194: EDF 977 ALL: Get rid of warnings PACKAGE_VERSION already defined
[modules/kernel.git] / src / ModuleCatalog / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
23 #  File   : Makefile.am
24 #  Author : Guillaume Boulant (CSSI)
25 #  Module : SALOME
26 #  $Header$
27 #
28 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
29
30 #
31 # ===============================================================
32 # Header an scripts to be installed
33 # ===============================================================
34 #
35 # header files  
36 salomeinclude_HEADERS = \
37                 SALOME_ModuleCatalog_impl.hxx \
38                 SALOME_ModuleCatalog_Acomponent_impl.hxx \
39                 PathPrefix.hxx \
40                 SALOME_ModuleCatalog_Parser.hxx \
41                 SALOME_ModuleCatalog_Parser_IO.hxx \
42                 SALOME_ModuleCatalog_Handler.hxx \
43                 SALOME_ModuleCatalog.hxx
44
45 # Scripts to be installed
46 dist_salomescript_PYTHON = TestModuleCatalog.py
47
48
49 #
50 # ===============================================================
51 # Libraries targets
52 # ===============================================================
53 #
54 lib_LTLIBRARIES = libSalomeCatalog.la
55
56 # This local variable defines the list of CPPFLAGS common to all target in this package.
57 COMMON_CPPFLAGS=\
58         -I$(srcdir)/../Basics \
59         -I$(srcdir)/../SALOMELocalTrace \
60         -I$(srcdir)/../NamingService \
61         -I$(srcdir)/../Utils \
62         -I$(top_builddir)/idl \
63         @LIBXML_INCLUDES@ \
64         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
65
66 # This local variable defines the list of dependant libraries common to all target in this package.
67 COMMON_LIBS =\
68         ../NamingService/libSalomeNS.la \
69         ../Utils/libOpUtil.la \
70         ../SALOMELocalTrace/libSALOMELocalTrace.la \
71         ../Basics/libSALOMEBasics.la \
72         $(top_builddir)/idl/libSalomeIDLKernel.la \
73         @LIBXML_LIBS@
74
75 libSalomeCatalog_la_SOURCES =\
76         SALOME_ModuleCatalog_Handler.cxx  \
77         SALOME_ModuleCatalog_Parser_IO.cxx \
78         SALOME_ModuleCatalog_impl.cxx \
79         SALOME_ModuleCatalog_Acomponent_impl.cxx
80
81 libSalomeCatalog_la_CPPFLAGS =\
82         $(COMMON_CPPFLAGS)
83
84 libSalomeCatalog_la_LDFLAGS = -no-undefined -version-info=0:0:0
85
86 libSalomeCatalog_la_LIBADD  =\
87         $(COMMON_LIBS)
88
89
90 #
91 # ===============================================================
92 # Executables targets
93 # ===============================================================
94 #
95 bin_PROGRAMS = SALOME_ModuleCatalog_Server SALOME_ModuleCatalog_Client
96
97 # SALOME_ModuleCatalog_Server
98 SALOME_ModuleCatalog_Server_SOURCES  = SALOME_ModuleCatalog_Server.cxx
99 SALOME_ModuleCatalog_Server_CPPFLAGS =\
100         $(COMMON_CPPFLAGS) 
101
102 SALOME_ModuleCatalog_Server_LDADD   =\
103         libSalomeCatalog.la \
104         @CORBA_LIBS@
105
106 # SALOME_ModuleCatalog_Client
107 SALOME_ModuleCatalog_Client_SOURCES  = SALOME_ModuleCatalog_Client.cxx
108 SALOME_ModuleCatalog_Client_CPPFLAGS =\
109         $(COMMON_CPPFLAGS)
110
111 SALOME_ModuleCatalog_Client_LDADD   =\
112         libSalomeCatalog.la \
113         @CORBA_LIBS@