/[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 1729 - (show annotations) (download)
Sat May 29 16:46:47 2010 UTC (11 years, 7 months ago) by aramv
File size: 3250 byte(s)
Prefixed example plugin names with ees_ and stopped trying to overwrite libdir
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_ees_dummy_good.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_ees_dummy_good_la_LIBADD = $(Plugin_LIBADD)
33 libees_ees_dummy_good_la_CPPFLAGS = $(Plugin_CPPFLAGS)
34 libees_ees_dummy_good_la_LDFLAGS = $(Plugin_LDFLAGS)
35 libees_ees_dummy_good_la_SOURCES = ees_dummy_good/src/ees_dummy_good.c
36
37 libees_posix_enf_la_LIBADD = $(Plugin_LIBADD)
38 libees_posix_enf_la_CPPFLAGS = $(Plugin_CPPFLAGS) \
39 -I$(top_srcdir)/src/cgul/unixprivs/
40 libees_posix_enf_la_LDFLAGS = $(Plugin_LDFLAGS)
41 libees_posix_enf_la_SOURCES = posix_enf/src/posix_enf.c \
42 $(top_srcdir)/src/cgul/unixprivs/unixpriv.c
43
44 libees_localaccount_la_LIBADD = $(Plugin_LIBADD) $(GLOBUS_LIBRARIES)
45 libees_localaccount_la_CPPFLAGS = $(Plugin_CPPFLAGS) \
46 -I$(top_srcdir)/src/cgul/log_to_file/ \
47 -I$(top_srcdir)/src/cgul/gridmapfile/ \
48 -I$(top_srcdir)/src/cgul/fileutil/ \
49 -Ilocalaccount/src/safefile-1.0/
50 libees_localaccount_la_LDFLAGS = $(Plugin_LDFLAGS)
51 libees_localaccount_la_SOURCES = localaccount/src/localaccount.c \
52 localaccount/src/safefile-1.0/safe_open.c \
53 localaccount/src/safefile-1.0/safe_id_range_list.c \
54 localaccount/src/safefile-1.0/safe_is_path_trusted.c \
55 $(top_srcdir)/src/cgul/unixprivs/unixpriv.c \
56 $(top_srcdir)/src/cgul/log_to_file/log_to_file.c \
57 $(top_srcdir)/src/cgul/gridmapfile/gridmapfile.c \
58 $(top_srcdir)/src/cgul/fileutil/fileutil.c
59
60
61 install-data-hook:
62 set -x ;\
63 ( \
64 cd $(DESTDIR)$(plugindir); \
65 for mod in ees_example_plugin ees_plugin_a ees_plugin_b ees_ees_dummy_good ees_posix_enf ees_localaccount ; do \
66 so_mod="lib$$mod.so.$(MAJOR_VERSION)" ; \
67 dylib_mod="lib$$mod.$(MAJOR_VERSION).dylib" ; \
68 if [ -f "$$so_mod" ] ; then \
69 plugin="$$so_mod" ; \
70 elif [ -f "$$dylib_mod" ] ; then \
71 plugin="$$dylib_mod" ; \
72 fi; \
73 rm -rf $$mod.mod; \
74 $(LN_S) $$plugin $$mod.mod;\
75 done \
76 )

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