Salome HOME
Merge from BR_LIBBATCH_2_0
[modules/kernel.git] / src / NamingService / Test / Makefile.am
1 # Copyright (C) 2007-2012  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
23 #  SALOMELocalTrace : log on local machine
24 #  File   : Makefile.am
25 #  Author : Guillaume BOULANT (CSSI)
26 #  Module : SALOME
27 #  $Header$
28 #
29 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
30
31 #
32 # ===============================================================
33 # Files to be installed
34 # ===============================================================
35 #
36 # header files  
37 salomeinclude_HEADERS= NamingServiceTest.hxx
38
39 # Scripts to be installed
40 dist_salomescript_PYTHON = TestNamingService.py
41
42
43 #
44 # ===============================================================
45 # Local definitions
46 # ===============================================================
47 #
48
49 # This directory defines the subdirectory src in the top source directory.
50 RPATH=../..
51
52 # This local variable defines the list of CPPFLAGS common to all target in this package.
53 COMMON_CPPFLAGS=\
54         @CPPUNIT_INCLUDES@ -I$(srcdir)/$(RPATH)/NamingService \
55         -I$(srcdir)/$(RPATH)/Basics \
56         -I$(srcdir)/$(RPATH)/SALOMELocalTrace \
57         -I$(srcdir)/$(RPATH)/Utils \
58     -I$(srcdir)/$(RPATH)/LifeCycleCORBA \
59         -I$(top_builddir)/idl \
60         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
61
62 # This local variable defines the list of dependant libraries common to all target in this package.
63 COMMON_LIBS =\
64         @CPPUNIT_LIBS@ \
65         ../libSalomeNS.la \
66         ../../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
67         @CORBA_LIBS@
68
69 #
70 # ===============================================================
71 # Libraries targets
72 # ===============================================================
73 #
74 lib_LTLIBRARIES = libNamingServiceTest.la
75 libNamingServiceTest_la_SOURCES = NamingServiceTest.cxx
76 libNamingServiceTest_la_CPPFLAGS = $(COMMON_CPPFLAGS)
77 libNamingServiceTest_la_LDFLAGS  = -no-undefined -version-info=0:0:0
78 libNamingServiceTest_la_LIBADD   = $(COMMON_LIBS)
79
80
81 #
82 # ===============================================================
83 # Executables targets
84 # ===============================================================
85 #
86 bin_PROGRAMS = TestNamingService
87 TestNamingService_SOURCES  = TestNamingService.cxx
88 TestNamingService_CPPFLAGS = \
89         $(COMMON_CPPFLAGS) \
90         -I$(srcdir)/$(RPATH)/SALOMELocalTrace/Test \
91         -I$(srcdir)/$(RPATH)/SALOMETraceCollector/Test \
92         -I$(srcdir)/$(RPATH)/Utils/Test \
93         -I$(srcdir)/$(RPATH)/Basics/Test
94
95
96 TestNamingService_LDADD    = \
97         libNamingServiceTest.la ../libSalomeNS.la \
98         $(RPATH)/SALOMELocalTrace/Test/libSALOMELocalTraceTest.la $(RPATH)/SALOMELocalTrace/libSALOMELocalTrace.la \
99         $(RPATH)/SALOMETraceCollector/Test/libSALOMETraceCollectorTest.la \
100         $(RPATH)/Utils/Test/libUtilsTest.la $(RPATH)/Utils/libOpUtil.la \
101         $(RPATH)/Basics/libSALOMEBasics.la \
102         $(top_builddir)/idl/libSalomeIDLKernel.la $(COMMON_LIBS)