/[pdpsoft]/trunk/grid-mw-security/ees/plugin_examples/Makefile.am
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/plugin_examples/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 784 - (show annotations) (download)
Tue Sep 15 11:56:02 2009 UTC (12 years, 8 months ago) by aramv
File size: 1463 byte(s)
Added generated filename to distclean target
1 plugindir = $(MODULE_DIR)
2
3 #pkglib_LTLIBRARIES = libplugin_a.la libplugin_b.la
4 #lib_LTLIBRARIES = libplugin_a.la libplugin_b.la
5 DISTCLEANFILES = Makefile.in
6
7 Plugin_LIBADD = \
8 $(top_builddir)/src/libnextgen.la
9
10 Plugin_CPPFLAGS = \
11 -I$(top_srcdir)/include/plugins/ \
12 -I$(top_srcdir)/include/library/ \
13 -I$(top_srcdir)/include/
14
15 Plugin_LDFLAGS = \
16 -version-info $(MAJOR_VERSION)
17
18 plugin_LTLIBRARIES = libplugin_a.la libplugin_b.la liblcmaps_dummy_good.la
19 libplugin_a_la_LIBADD = $(Plugin_LIBADD)
20 libplugin_a_la_CPPFLAGS = $(Plugin_CPPFLAGS)
21 libplugin_a_la_LDFLAGS = $(Plugin_LDFLAGS)
22 libplugin_a_la_SOURCES = plugin_a/src/plugin_a.c
23
24 libplugin_b_la_LIBADD = $(Plugin_LIBADD)
25 libplugin_b_la_CPPFLAGS = $(Plugin_CPPFLAGS)
26 libplugin_b_la_LDFLAGS = $(Plugin_LDFLAGS)
27 libplugin_b_la_SOURCES = plugin_b/src/plugin_b.c
28
29 liblcmaps_dummy_good_la_LIBADD = $(Plugin_LIBADD)
30 liblcmaps_dummy_good_la_CPPFLAGS = $(Plugin_CPPFLAGS)
31 liblcmaps_dummy_good_la_LDFLAGS = $(Plugin_LDFLAGS)
32 liblcmaps_dummy_good_la_SOURCES = lcmaps_dummy_good/src/lcmaps_dummy_good.c
33
34 install-data-hook:
35 set -x ;\
36 ( \
37 cd $(DESTDIR)$(plugindir); \
38 for mod in plugin_a plugin_b lcmaps_dummy_good; do \
39 so_mod="lib$$mod.so.$(MAJOR_VERSION)" ; \
40 dylib_mod="lib$$mod.$(MAJOR_VERSION).dylib" ; \
41 if [ -f "$$so_mod" ] ; then \
42 plugin="$$so_mod" ; \
43 elif [ -f "$$dylib_mod" ] ; then \
44 plugin="$$dylib_mod" ; \
45 fi; \
46 rm -rf $$mod.mod; \
47 $(LN_S) $$plugin $$mod.mod;\
48 done \
49 )

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28