Salome HOME
Test EXPORTS definition with target name as suggested by cmake
[modules/kernel.git] / src / SALOMEDSImpl / Test / 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 #  File   : Makefile.am
23 #  Author : Paul RASCLE
24 #  Module : KERNEL
25 #  $Header$
26 #
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
28
29 #
30 # ===============================================================
31 # Files to be installed
32 # ===============================================================
33 #
34 # header files  
35 salomeinclude_HEADERS= SALOMEDSImplTest.hxx
36
37 # Scripts to be installed
38 dist_salomescript_SCRIPTS = TestSALOMEDSImpl.py
39
40 #
41 # ===============================================================
42 # Local definitions
43 # ===============================================================
44 #
45
46 # This directory defines the subdirectory src in the top source directory.
47 RPATH=../..
48
49 # This local variable defines the list of CPPFLAGS common to all target in this package.
50 COMMON_CPPFLAGS=\
51         @CPPUNIT_INCLUDES@ \
52         -I$(srcdir)/$(RPATH)/Basics -I$(srcdir)/$(RPATH)/Basics/Test \
53         -I$(srcdir)/$(RPATH)/SALOMELocalTrace -I$(srcdir)/$(RPATH)/SALOMELocalTrace/Test \
54         -I$(srcdir)/$(RPATH)/SALOMETraceCollector -I$(srcdir)/$(RPATH)/SALOMETraceCollector/Test \
55         -I$(srcdir)/$(RPATH)/NamingService -I$(srcdir)/$(RPATH)/NamingService/Test \
56         -I$(srcdir)/$(RPATH)/Utils -I$(srcdir)/$(RPATH)/Utils/Test \
57         -I$(srcdir)/$(RPATH)/ResourcesManager \
58         -I$(srcdir)/$(RPATH)/LifeCycleCORBA \
59         -I$(srcdir)/$(RPATH)/DF \
60         -I$(srcdir)/$(RPATH)/SALOMEDSImpl \
61         -I$(top_builddir)/salome_adm/unix \
62         -I$(top_builddir)/idl \
63         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@
64
65 # This local variable defines the list of dependant libraries common to all target in this package.
66 COMMON_LIBS =\
67         @CPPUNIT_LIBS@ \
68         $(RPATH)/Basics/libSALOMEBasics.la \
69         $(RPATH)/ResourcesManager/libSalomeResourcesManager.la \
70         $(RPATH)/Container/libSalomeContainer.la \
71         $(RPATH)/NamingService/libSalomeNS.la \
72         $(RPATH)/Registry/libRegistry.la \
73         $(RPATH)/Notification/libSalomeNotification.la \
74         $(RPATH)/Utils/Test/libUtilsTest.la \
75         $(RPATH)/Utils/libOpUtil.la \
76         $(RPATH)/SALOMELocalTrace/Test/libSALOMELocalTraceTest.la \
77         $(RPATH)/SALOMELocalTrace/libSALOMELocalTrace.la \
78         $(RPATH)/SALOMETraceCollector/Test/libSALOMETraceCollectorTest.la \
79         $(RPATH)/DF/libDF.la \
80         $(RPATH)/SALOMEDSImpl/libSalomeDSImpl.la \
81         $(RPATH)/HDFPersist/libSalomeHDFPersist.la \
82         $(top_builddir)/idl/libSalomeIDLKernel.la
83
84 #
85 # ===============================================================
86 # Libraries targets
87 # ===============================================================
88 #
89 lib_LTLIBRARIES = libSALOMEDSImplTest.la 
90 libSALOMEDSImplTest_la_SOURCES = SALOMEDSImplTest.cxx
91 libSALOMEDSImplTest_la_CPPFLAGS = $(COMMON_CPPFLAGS)
92 libSALOMEDSImplTest_la_LDFLAGS  = -no-undefined -version-info=0:0:0
93 libSALOMEDSImplTest_la_LIBADD    = $(COMMON_LIBS)
94
95 #
96 # ===============================================================
97 # Executables targets
98 # ===============================================================
99 #
100 bin_PROGRAMS = TestSALOMEDSImpl
101 TestSALOMEDSImpl_SOURCES  = TestSALOMEDSImpl.cxx
102 TestSALOMEDSImpl_CPPFLAGS = $(COMMON_CPPFLAGS)
103 TestSALOMEDSImpl_LDADD    = \
104         libSALOMEDSImplTest.la ../libSalomeDSImpl.la \
105         $(RPATH)/NamingService/Test/libNamingServiceTest.la \
106         $(COMMON_LIBS)
107