/[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 1583 - (show annotations) (download)
Fri Mar 19 17:29:41 2010 UTC (12 years, 6 months ago) by aramv
File size: 2084 byte(s)
Fixed a read error. Added signature for fork function
1 plugindir = $(MODULE_DIR)
2
3 #MAINTAINERCLEANFILES = Makefile.in
4
5 Plugin_LIBADD = \
6 $(top_builddir)/src/libeef.la
7
8 Plugin_CPPFLAGS = \
9 -I$(top_srcdir)/include/plugins/ \
10 -I$(top_srcdir)/include/private/ \
11 -I$(top_srcdir)/include/library/ \
12 -I$(top_srcdir)/include/
13
14 Plugin_LDFLAGS = \
15 -version-info $(MAJOR_VERSION)
16
17 plugin_LTLIBRARIES = libexample_plugin.la libplugin_a.la libplugin_b.la liblcmaps_dummy_good.la libposix_enf.la libhelloworld.la
18
19 libexample_plugin_la_LIBADD = $(Plugin_LIBADD)
20 libexample_plugin_la_CPPFLAGS = $(Plugin_CPPFLAGS)
21 libexample_plugin_la_LDFLAGS = $(Plugin_LDFLAGS)
22 libexample_plugin_la_SOURCES = example_plugin/src/example_plugin.c
23
24 libplugin_a_la_LIBADD = $(Plugin_LIBADD)
25 libplugin_a_la_CPPFLAGS = $(Plugin_CPPFLAGS)
26 libplugin_a_la_LDFLAGS = $(Plugin_LDFLAGS)
27 libplugin_a_la_SOURCES = plugin_a/src/plugin_a.c
28
29 libplugin_b_la_LIBADD = $(Plugin_LIBADD)
30 libplugin_b_la_CPPFLAGS = $(Plugin_CPPFLAGS)
31 libplugin_b_la_LDFLAGS = $(Plugin_LDFLAGS)
32 libplugin_b_la_SOURCES = plugin_b/src/plugin_b.c
33
34 liblcmaps_dummy_good_la_LIBADD = $(Plugin_LIBADD)
35 liblcmaps_dummy_good_la_CPPFLAGS = $(Plugin_CPPFLAGS)
36 liblcmaps_dummy_good_la_LDFLAGS = $(Plugin_LDFLAGS)
37 liblcmaps_dummy_good_la_SOURCES = lcmaps_dummy_good/src/lcmaps_dummy_good.c
38
39 libposix_enf_la_LIBADD = $(Plugin_LIBADD)
40 libposix_enf_la_CPPFLAGS = $(Plugin_CPPFLAGS)
41 libposix_enf_la_LDFLAGS = $(Plugin_LDFLAGS)
42 libposix_enf_la_SOURCES = posix_enf/src/posix_enf.c
43
44 libhelloworld_la_LIBADD = $(Plugin_LIBADD)
45 libhelloworld_la_CPPFLAGS = $(Plugin_CPPFLAGS)
46 libhelloworld_la_LDFLAGS = $(Plugin_LDFLAGS)
47 libhelloworld_la_SOURCES = helloworld/src/helloworld.c
48
49 install-data-hook:
50 set -x ;\
51 ( \
52 cd $(DESTDIR)$(plugindir); \
53 for mod in example_plugin plugin_a plugin_b lcmaps_dummy_good posix_enf helloworld; do \
54 so_mod="lib$$mod.so.$(MAJOR_VERSION)" ; \
55 dylib_mod="lib$$mod.$(MAJOR_VERSION).dylib" ; \
56 if [ -f "$$so_mod" ] ; then \
57 plugin="$$so_mod" ; \
58 elif [ -f "$$dylib_mod" ] ; then \
59 plugin="$$dylib_mod" ; \
60 fi; \
61 rm -rf $$mod.mod; \
62 $(LN_S) $$plugin $$mod.mod;\
63 done \
64 )

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