Salome HOME
Merge from V6_main 01/04/2013
[modules/yacs.git] / src / yacsloader / Makefile.am
1 # Copyright (C) 2006-2013  CEA/DEN, 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
20 include $(top_srcdir)/adm/unix/make_begin.am
21
22 if CPPUNIT_IS_OK
23 SUBDIRS = Test
24 endif
25
26 bin_PROGRAMS=driver debugger resume
27
28 lib_LTLIBRARIES = libYACSloader.la
29
30 libYACSloader_la_SOURCES =      \
31         parsers.cxx parserBase.cxx dataParsers.cxx typeParsers.cxx \
32         propertyParsers.cxx containerParsers.cxx xmlrpcParsers.cxx \
33         rootParser.cxx codeParsers.cxx \
34         LoadState.cxx  xmlParserBase.cxx ProcCataLoader.cxx   \
35         componentinstanceParsers.cxx \
36         $(__dummy__)
37
38 salomeinclude_HEADERS = \
39 YACSloaderExport.hxx \
40 blocParsers.hxx  codeParsers.hxx      containerParsers.hxx  dataParsers.hxx    factory.hxx \
41 linkParsers.hxx  LoadState.hxx        loopParsers.hxx       nodeParsers.hxx    outputParsers.hxx \
42 parserBase.hxx   parsers.hxx          portParsers.hxx       presetParsers.hxx  ProcCataLoader.hxx \
43 procParsers.hxx  propertyParsers.hxx  rootParser.hxx        switchParsers.hxx  inlineParsers.hxx \
44 componentinstanceParsers.hxx          remoteParsers.hxx     serverParsers.hxx  serviceParsers.hxx \
45 typeParsers.hxx  xmlParserBase.hxx    xmlrpcParsers.hxx     sinlineParsers.hxx
46
47 EXTRA_libYACSloader_la_SOURCES =  \
48         $(__dummy__)
49
50 libYACSloader_la_LIBADD = ../engine/libYACSlibEngine.la
51 libYACSloader_la_LDFLAGS = $(OMNIORB_LIBS) $(EXPAT_LIBS)
52
53 AM_CXXFLAGS = \
54                                                         $(THREAD_DEF) \
55               $(PYTHON_CPPFLAGS) \
56               $(OMNIORB_INCLUDES) \
57               $(OMNIORB_CXXFLAGS) \
58                                                         $(EXPAT_INCLUDES) \
59               -I$(srcdir) \
60               -I$(srcdir)/../bases \
61               -I$(srcdir)/../engine
62
63 if SALOME_KERNEL
64 SALOME_LIBS=$(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lSalomeIDLKernel -lSalomeNS -lOpUtil \
65             -lSalomeDSCContainer -lSalomeContainer -lSALOMEBasics -lSalomeResourcesManager \
66             -lSALOMELocalTrace -lRegistry -lSalomeNotification -lResourcesManager \
67             -lSalomeHDFPersist
68 SALOME_INCL_PATH=-I$(KERNEL_ROOT_DIR)/include/salome
69 endif
70
71
72 driver_SOURCES = driver.cxx 
73
74 driver_CXXFLAGS = -g -DYACS_PTHREAD \
75               $(PYTHON_CPPFLAGS) \
76                                                         $(SALOME_INCL_PATH) \
77               $(OMNIORB_INCLUDES) \
78               $(OMNIORB_CXXFLAGS) \
79               $(EXPAT_INCLUDES) \
80               -I$(srcdir)/../bases \
81               -I$(srcdir)/../engine \
82               -I$(srcdir)/../runtime
83
84 driver_LDADD = libYACSloader.la \
85                ../runtime/libYACSRuntimeSALOME.la \
86                ../engine/libYACSlibEngine.la \
87                $(SALOME_LIBS) \
88                $(OMNIORB_LIBS) \
89                $(PYTHON_LDFLAGS) \
90                $(PYTHON_EXTRA_LIBS) 
91
92 driver_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -pthread $(LIBXML_LIBS) $(EXPAT_LIBS)
93
94
95 resume_SOURCES = resume.cxx
96
97 resume_CXXFLAGS = -g -DYACS_PTHREAD \
98               $(PYTHON_CPPFLAGS) \
99               $(OMNIORB_INCLUDES) \
100               $(OMNIORB_CXXFLAGS) \
101               $(EXPAT_INCLUDES) \
102               -I$(srcdir)/../bases \
103               -I$(srcdir)/../engine \
104               -I$(srcdir)/../runtime
105
106 resume_LDADD = libYACSloader.la \
107                ../runtime/libYACSRuntimeSALOME.la \
108                ../engine/libYACSlibEngine.la \
109                $(SALOME_LIBS) \
110                $(OMNIORB_LIBS) \
111                $(PYTHON_LDFLAGS) \
112                $(PYTHON_EXTRA_LIBS) 
113
114 resume_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -pthread $(LIBXML_LIBS) $(EXPAT_LIBS)
115
116
117 debugger_SOURCES = debugger.cxx 
118
119 debugger_CXXFLAGS = -g -DYACS_PTHREAD \
120               $(PYTHON_CPPFLAGS) \
121               $(OMNIORB_INCLUDES) \
122               $(OMNIORB_CXXFLAGS) \
123               $(EXPAT_INCLUDES) \
124               -I$(srcdir)/../bases \
125               -I$(srcdir)/../engine \
126               -I$(srcdir)/../runtime
127
128 debugger_LDADD = libYACSloader.la \
129                ../runtime/libYACSRuntimeSALOME.la \
130                ../engine/libYACSlibEngine.la \
131                $(SALOME_LIBS) \
132                $(OMNIORB_LIBS) \
133                $(PYTHON_LDFLAGS) \
134                $(PYTHON_EXTRA_LIBS) 
135
136 debugger_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -pthread $(LIBXML_LIBS) $(EXPAT_LIBS)
137
138 EXTRA_DIST = samples schema.xsd
139
140 dist-hook:
141         rm -rf `find $(distdir) -name CVS`
142
143 install-data-local:
144         $(INSTALL) -d $(DESTDIR)$(prefix)/share/salome/yacssamples
145         cp -rf $(srcdir)/samples/*.xml $(DESTDIR)$(prefix)/share/salome/yacssamples
146         cp -rf $(srcdir)/samples/*.data $(DESTDIR)$(prefix)/share/salome/yacssamples
147
148 uninstall-local:
149         rm -rf $(DESTDIR)$(prefix)/share/salome/yacssamples
150
151 include $(top_srcdir)/adm/unix/make_end.am