/[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 1760 - (show annotations) (download)
Fri Jun 11 15:43:02 2010 UTC (11 years, 6 months ago) by aramv
File size: 3533 byte(s)
added dummy_obligations plugin for stress testing
1 plugindir = $(MODULE_DIR)
2
3 Plugin_LIBADD = \
4 $(top_builddir)/src/libeef.la
5
6 Plugin_CPPFLAGS = \
7 -I$(top_srcdir)/include/plugins/ \
8 -I$(top_srcdir)/include/private/ \
9 -I$(top_srcdir)/include/library/ \
10 -I$(top_srcdir)/include/
11
12 Plugin_LDFLAGS = \
13 -version-info $(MAJOR_VERSION)
14
15 plugin_LTLIBRARIES = libees_example_plugin.la libees_plugin_a.la libees_plugin_b.la libees_dummy_good.la libees_dummy_obligations.la libees_posix_enf.la libees_localaccount.la
16
17 libees_example_plugin_la_LIBADD = $(Plugin_LIBADD)
18 libees_example_plugin_la_CPPFLAGS = $(Plugin_CPPFLAGS)
19 libees_example_plugin_la_LDFLAGS = $(Plugin_LDFLAGS)
20 libees_example_plugin_la_SOURCES = example_plugin/src/example_plugin.c
21
22 libees_plugin_a_la_LIBADD = $(Plugin_LIBADD)
23 libees_plugin_a_la_CPPFLAGS = $(Plugin_CPPFLAGS)
24 libees_plugin_a_la_LDFLAGS = $(Plugin_LDFLAGS)
25 libees_plugin_a_la_SOURCES = plugin_a/src/plugin_a.c
26
27 libees_plugin_b_la_LIBADD = $(Plugin_LIBADD)
28 libees_plugin_b_la_CPPFLAGS = $(Plugin_CPPFLAGS)
29 libees_plugin_b_la_LDFLAGS = $(Plugin_LDFLAGS)
30 libees_plugin_b_la_SOURCES = plugin_b/src/plugin_b.c
31
32 libees_dummy_good_la_LIBADD = $(Plugin_LIBADD)
33 libees_dummy_good_la_CPPFLAGS = $(Plugin_CPPFLAGS)
34 libees_dummy_good_la_LDFLAGS = $(Plugin_LDFLAGS)
35 libees_dummy_good_la_SOURCES = ees_dummy_good/src/ees_dummy_good.c
36
37 libees_dummy_obligations_la_LIBADD = $(Plugin_LIBADD)
38 libees_dummy_obligations_la_CPPFLAGS = $(Plugin_CPPFLAGS)
39 libees_dummy_obligations_la_LDFLAGS = $(Plugin_LDFLAGS)
40 libees_dummy_obligations_la_SOURCES = ees_dummy_obligations/src/ees_dummy_obligations.c
41
42 libees_posix_enf_la_LIBADD = $(Plugin_LIBADD)
43 libees_posix_enf_la_CPPFLAGS = $(Plugin_CPPFLAGS) \
44 -I$(top_srcdir)/src/cgul/unixprivs/
45 libees_posix_enf_la_LDFLAGS = $(Plugin_LDFLAGS)
46 libees_posix_enf_la_SOURCES = posix_enf/src/posix_enf.c \
47 $(top_srcdir)/src/cgul/unixprivs/unixpriv.c
48
49 libees_localaccount_la_LIBADD = $(Plugin_LIBADD) $(GLOBUS_LIBRARIES)
50 libees_localaccount_la_CPPFLAGS = $(Plugin_CPPFLAGS) \
51 -I$(top_srcdir)/src/cgul/log_to_file/ \
52 -I$(top_srcdir)/src/cgul/gridmapfile/ \
53 -I$(top_srcdir)/src/cgul/fileutil/ \
54 -Ilocalaccount/src/safefile-1.0/
55 libees_localaccount_la_LDFLAGS = $(Plugin_LDFLAGS)
56 libees_localaccount_la_SOURCES = localaccount/src/localaccount.c \
57 localaccount/src/safefile-1.0/safe_open.c \
58 localaccount/src/safefile-1.0/safe_id_range_list.c \
59 localaccount/src/safefile-1.0/safe_is_path_trusted.c \
60 $(top_srcdir)/src/cgul/unixprivs/unixpriv.c \
61 $(top_srcdir)/src/cgul/log_to_file/log_to_file.c \
62 $(top_srcdir)/src/cgul/gridmapfile/gridmapfile.c \
63 $(top_srcdir)/src/cgul/fileutil/fileutil.c
64
65
66 install-data-hook:
67 set -x ;\
68 ( \
69 cd $(DESTDIR)$(plugindir); \
70 for mod in ees_example_plugin ees_plugin_a ees_plugin_b ees_dummy_good ees_dummy_obligations ees_posix_enf ees_localaccount ; do \
71 so_mod="lib$$mod.so.$(MAJOR_VERSION)" ; \
72 dylib_mod="lib$$mod.$(MAJOR_VERSION).dylib" ; \
73 if [ -f "$$so_mod" ] ; then \
74 plugin="$$so_mod" ; \
75 elif [ -f "$$dylib_mod" ] ; then \
76 plugin="$$dylib_mod" ; \
77 fi; \
78 rm -rf $$mod.mod; \
79 $(LN_S) $$plugin $$mod.mod;\
80 done \
81 )

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