~ubuntu-branches/ubuntu/trusty/lcmaps-plugins-voms/trusty

« back to all changes in this revision

Viewing changes to src/voms/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Dennis van Dok
  • Date: 2012-11-06 00:50:24 UTC
  • Revision ID: package-import@ubuntu.com-20121106005024-0513ko4vca18a53l
Tags: upstream-1.5.5
ImportĀ upstreamĀ versionĀ 1.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#       Copyright (c) Members of the EGEE Collaboration. 2004.
 
2
#       See http://eu-egee.org/partners/ for details on the copyright holders.
 
3
#       For license conditions see the license file or
 
4
#       http://eu-egee.org/license.html
 
5
#
 
6
#       Authors: Martijn Steenbakkers <martijn@nikhef.nl>
 
7
#
 
8
#       $Id: Makefile.am,v 1.6 2006-11-30 10:39:10 okoeroo Exp $
 
9
#       Define the targets to be built here
 
10
 
 
11
if LCMAPS_GSI_MODE
 
12
AM_CPPFLAGS = \
 
13
        $(GLOBUS_COMMON_CFLAGS) $(GLOBUS_COMMON_NOTHR_CFLAGS) \
 
14
        $(GLOBUS_GSI_CALLBACK_CFLAGS) $(GLOBUS_GSI_CALLBACK_NOTHR_CFLAGS) \
 
15
        $(GLOBUS_GSI_CREDENTIAL_CFLAGS) $(GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS) \
 
16
        $(GLOBUS_GSI_PROXY_CORE_CFLAGS) $(GLOBUS_GSI_PROXY_CORE_NOTHR_CFLAGS) \
 
17
        $(GLOBUS_GSS_ASSIST_CFLAGS) $(GLOBUS_GSS_ASSIST_NOTHR_CFLAGS) \
 
18
        $(GLOBUS_GSSAPI_GSI_CFLAGS) $(GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS) \
 
19
        $(GLOBUS_GSI_PROXY_SSL_CFLAGS) $(GLOBUS_GSI_PROXY_SSL_NOTHR_CFLAGS) \
 
20
        $(LCMAPS_CFLAGS) \
 
21
        $(VOMS_CFLAGS) \
 
22
        $(ADD_THESE_DEFINES)
 
23
else
 
24
AM_CPPFLAGS = \
 
25
        $(LCMAPS_CFLAGS) \
 
26
        $(ADD_THESE_DEFINES)
 
27
endif
 
28
 
 
29
VomsPluginSources= \
 
30
        lcmaps_voms_gsi_utils.h \
 
31
        lcmaps_voms.c
 
32
 
 
33
VomsPoolGroupPluginSources= \
 
34
        lcmaps_gridlist.h \
 
35
        lcmaps_gridlist.c \
 
36
        lcmaps_voms_poolgroup.c
 
37
 
 
38
VomsLocalGroupPluginSources= \
 
39
        lcmaps_gridlist.h \
 
40
        lcmaps_gridlist.c \
 
41
        lcmaps_voms_localgroup.c
 
42
 
 
43
VomsLocalAccountPluginSources= \
 
44
        lcmaps_gridlist.h \
 
45
        lcmaps_gridlist.c \
 
46
        lcmaps_voms_localaccount.c
 
47
 
 
48
VomsPoolAccountPluginSources= \
 
49
        lcmaps_gridlist.h \
 
50
        lcmaps_gridlist.c \
 
51
        lcmaps_voms_poolaccount.c
 
52
 
 
53
BanFqanPluginSources= \
 
54
        lcmaps_gridlist.h \
 
55
        lcmaps_gridlist.c \
 
56
        lcmaps_ban_fqan.c
 
57
 
 
58
##LcmapsSources = \
 
59
##      ../../src/lcmaps.c
 
60
##
 
61
##PluginmanagerPublicHeaders = \
 
62
##      lcmaps_vo_data.h \
 
63
##      lcmaps_cred_data.h \
 
64
##      lcmaps_arguments.h \
 
65
##      lcmaps_types.h \
 
66
##      lcmaps_defines.h \
 
67
##      lcmaps_utils.h \
 
68
##      lcmaps_log.h
 
69
##
 
70
##PluginmanagerLocalHeaders = \
 
71
##      ../../src/pluginmanager/_lcmaps_cred_data.h \
 
72
##      ../../src/pluginmanager/_lcmaps_runvars.h \
 
73
##      ../../src/pluginmanager/_lcmaps_pluginmanager.h \
 
74
##      ../../src/pluginmanager/_lcmaps_db_read.h \
 
75
##      ../../src/pluginmanager/_lcmaps_utils.h \
 
76
##      ../../src/pluginmanager/_lcmaps_log.h
 
77
##
 
78
##PluginmanagerSources = \
 
79
##      ../../src/pluginmanager/lcmaps_vo_data.c \
 
80
##      ../../src/pluginmanager/lcmaps_cred_data.c \
 
81
##      ../../src/pluginmanager/lcmaps_runvars.c \
 
82
##      ../../src/pluginmanager/lcmaps_arguments.c \
 
83
##      ../../src/pluginmanager/lcmaps_db_read.c \
 
84
##      ../../src/pluginmanager/lcmaps_utils.c \
 
85
##      ../../src/pluginmanager/lcmaps_log.c \
 
86
##      ../../src/pluginmanager/lcmaps_pluginmanager.c
 
87
##
 
88
##EvaluationmanagerLocalHeaders = \
 
89
##      ../../src/evaluationmanager/evaluationmanager.h \
 
90
##      ../../src/evaluationmanager/pdl.h \
 
91
##      ../../src/evaluationmanager/pdl_policy.h \
 
92
##      ../../src/evaluationmanager/pdl_rule.h \
 
93
##      ../../src/evaluationmanager/pdl_variable.h \
 
94
##      ../../src/evaluationmanager/pdl_yacc.h
 
95
##
 
96
##EvaluationmanagerSources = \
 
97
##      ../../src/evaluationmanager/evaluationmanager.c \
 
98
##      ../../src/evaluationmanager/pdl_yacc.y \
 
99
##      ../../src/evaluationmanager/pdl_lex.l \
 
100
##      ../../src/evaluationmanager/pdl_main.c \
 
101
##      ../../src/evaluationmanager/pdl_variable.c \
 
102
##      ../../src/evaluationmanager/pdl_policy.c \
 
103
##      ../../src/evaluationmanager/pdl_rule.c
 
104
##
 
105
 
 
106
plugindir = $(MODULEDIR)
 
107
if LCMAPS_GSI_MODE
 
108
plugin_LTLIBRARIES = \
 
109
        liblcmaps_voms.la \
 
110
        liblcmaps_voms_poolgroup.la \
 
111
        liblcmaps_voms_localgroup.la \
 
112
        liblcmaps_voms_localaccount.la \
 
113
        liblcmaps_voms_poolaccount.la \
 
114
        liblcmaps_ban_fqan.la
 
115
liblcmaps_voms_la_SOURCES = $(VomsPluginSources)
 
116
liblcmaps_voms_la_LDFLAGS = -avoid-version
 
117
liblcmaps_voms_la_LIBADD = \
 
118
    $(GLOBUS_COMMON_LIBS) $(GLOBUS_COMMON_NOTHR_LIBS) \
 
119
    $(GLOBUS_GSI_CREDENTIAL_LIBS) $(GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS) \
 
120
    $(VOMS_CPP_LIBS)
 
121
 
 
122
liblcmaps_voms_poolgroup_la_SOURCES = $(VomsPoolGroupPluginSources)
 
123
liblcmaps_voms_poolgroup_la_LDFLAGS = -avoid-version
 
124
liblcmaps_voms_poolgroup_la_LIBADD =
 
125
 
 
126
liblcmaps_voms_localgroup_la_SOURCES = $(VomsLocalGroupPluginSources)
 
127
liblcmaps_voms_localgroup_la_LDFLAGS = -avoid-version
 
128
liblcmaps_voms_localgroup_la_LIBADD =
 
129
 
 
130
liblcmaps_voms_localaccount_la_SOURCES = $(VomsLocalAccountPluginSources)
 
131
liblcmaps_voms_localaccount_la_LDFLAGS = -avoid-version
 
132
liblcmaps_voms_localaccount_la_LIBADD =
 
133
 
 
134
liblcmaps_voms_poolaccount_la_SOURCES = $(VomsPoolAccountPluginSources)
 
135
liblcmaps_voms_poolaccount_la_LDFLAGS = -avoid-version
 
136
liblcmaps_voms_poolaccount_la_LIBADD =
 
137
 
 
138
liblcmaps_ban_fqan_la_SOURCES = $(BanFqanPluginSources)
 
139
liblcmaps_ban_fqan_la_LDFLAGS = -avoid-version
 
140
liblcmaps_ban_fqan_la_LIBADD =
 
141
install-data-hook:
 
142
        ( \
 
143
        cd $(DESTDIR)$(plugindir); \
 
144
        for mod in voms voms_poolgroup voms_localgroup voms_localaccount voms_poolaccount ban_fqan ; do \
 
145
            rm -f lcmaps_$$mod.mod; \
 
146
            ln -s liblcmaps_$$mod@SHREXT@ lcmaps_$$mod.mod; \
 
147
        done \
 
148
        )
 
149
else
 
150
plugin_LTLIBRARIES = \
 
151
        liblcmaps_voms_poolgroup_without_gsi.la \
 
152
        liblcmaps_voms_localgroup_without_gsi.la \
 
153
        liblcmaps_voms_localaccount_without_gsi.la \
 
154
        liblcmaps_voms_poolaccount_without_gsi.la \
 
155
        liblcmaps_ban_fqan_without_gsi.la
 
156
 
 
157
liblcmaps_voms_poolgroup_without_gsi_la_SOURCES = $(VomsPoolGroupPluginSources)
 
158
liblcmaps_voms_poolgroup_without_gsi_la_LDFLAGS = -avoid-version
 
159
liblcmaps_voms_poolgroup_without_gsi_la_LIBADD =
 
160
 
 
161
liblcmaps_voms_localgroup_without_gsi_la_SOURCES = $(VomsLocalGroupPluginSources)
 
162
liblcmaps_voms_localgroup_without_gsi_la_LDFLAGS = -avoid-version
 
163
liblcmaps_voms_localgroup_without_gsi_la_LIBADD =
 
164
 
 
165
liblcmaps_voms_localaccount_without_gsi_la_SOURCES = $(VomsLocalAccountPluginSources)
 
166
liblcmaps_voms_localaccount_without_gsi_la_LDFLAGS = -avoid-version
 
167
liblcmaps_voms_localaccount_without_gsi_la_LIBADD =
 
168
 
 
169
liblcmaps_voms_poolaccount_without_gsi_la_SOURCES = $(VomsPoolAccountPluginSources)
 
170
liblcmaps_voms_poolaccount_without_gsi_la_LDFLAGS = -avoid-version
 
171
liblcmaps_voms_poolaccount_without_gsi_la_LIBADD =
 
172
 
 
173
liblcmaps_ban_fqan_without_gsi_la_SOURCES = $(BanFqanPluginSources)
 
174
liblcmaps_ban_fqan_without_gsi_la_LDFLAGS = -avoid-version
 
175
liblcmaps_ban_fqan_without_gsi_la_LIBADD =
 
176
install-data-hook:
 
177
        ( \
 
178
        cd $(DESTDIR)$(plugindir); \
 
179
        for mod in voms_poolgroup_without_gsi voms_localgroup_without_gsi voms_localaccount_without_gsi voms_poolaccount_without_gsi ban_fqan_without_gsi ; do \
 
180
            rm -f lcmaps_$$mod.mod; \
 
181
            ln -s liblcmaps_$$mod@SHREXT@ lcmaps_$$mod.mod; \
 
182
        done \
 
183
        )
 
184
endif
 
185
 
 
186
##noinst_PROGRAMS = plugin-test
 
187
##plugin_test_SOURCES = \
 
188
##      plugin_test.c \
 
189
##      plugin_test.h \
 
190
##      $(LcmapsSources) \
 
191
##      $(PluginmanagerSources) \
 
192
##      $(PluginmanagerLocalHeaders) \
 
193
##      $(EvaluationmanagerSources) \
 
194
##      $(EvaluationmanagerLocalHeaders) \
 
195
##      $(VomsPluginSources)
 
196
##plugin_test_LDFLAGS = -L@GLOBUS_LOCATION@/lib -L@EDG_LOCATION@/lib
 
197
##plugin_test_LDADD = -lglobus_gss_assist_@BUILDFLAVOR@ -lglobus_gsi_credential_@BUILDFLAVOR@ -lvomsc@VOMSAPIFLAVOR@ -ll
 
198
 
 
199
EXTRA_DIST = plugin_test.c plugin_test.h