source: Makefile.am

Last change on this file was d469e63, checked in by Ted Faber <faber@…>, 4 years ago

Use autoconf to set no-error=header-guard

  • Property mode set to 100644
File size: 6.0 KB
Line 
1#
2# libabac
3# (0.1.7)
4bin_PROGRAMS = libabac/abac_prover libabac/abac_prover_plus \
5               creddy/creddy
6EXTRA_DIST = doc java cred_printer tests
7
8lib_LTLIBRARIES = libabac/libabac.la
9libabac_libabac_la_SOURCES = \
10    libabac/abac.c \
11    libabac/abac.h \
12    libabac/abac_list.c \
13    libabac/abac_list.h \
14    libabac/abac_graph.c \
15    libabac/abac_graph.h \
16    libabac/abac_keyid_map.c \
17    libabac/abac_role.c \
18    libabac/abac_set.c \
19    libabac/abac_set.h \
20    libabac/abac_xml.c \
21    libabac/abac_xml.h \
22    libabac/abac_openssl.c \
23    libabac/abac_openssl.h \
24    libabac/abac_id.c \
25    libabac/abac_attribute.c \
26    libabac/abac_util.c \
27    libabac/abac_util.h \
28    libabac/abac_verifier.c \
29    libabac/abac_verifier.h \
30    libabac/compat/readpassphrase.c \
31    libabac/compat/readpassphrase.h \
32    libabac/libabac_common.h \
33    libabac/uthash.h \
34    libabac/utlist.h
35libabac_libabac_la_LDFLAGS = -version-info 2:0:0
36libabac_libabac_la_LIBADD = $(XML2_LDFLAGS) $(XMLSEC1_LDFLAGS) $(OPENSSL_LIBS)
37
38libabac_abac_prover_SOURCES = libabac/prover.c libabac/options.c libabac/options.h \
39                              libabac/abac.h
40libabac_abac_prover_LDADD = $(top_builddir)/libabac/libabac.la
41
42libabac_abac_prover_plus_SOURCES = libabac/prover_plus.cc libabac/options.c \
43                                   libabac/options.h libabac/abac.hh
44libabac_abac_prover_plus_LDADD = $(top_builddir)/libabac/libabac.la
45
46#
47# creddy
48#
49creddy_creddy_SOURCES = \
50    creddy/creddy_common.h \
51    creddy/attribute.c \
52    creddy/attribute_rule.c \
53    creddy/creddy.c \
54    creddy/display.c \
55    creddy/generate.c \
56    creddy/keyid.c \
57    creddy/roles.c \
58    creddy/verify.c
59creddy_creddy_LDADD = $(top_builddir)/libabac/libabac.la
60man1_MANS = doc/creddy.1
61
62# FreeBSD autoconf archive sets these instead of the right ones after some
63# version.  These lines fall back to the AX_ versions of the swig parameters if
64# the bare SWIG_ versions are not set.
65SWIG_PYTHON_CPPFLAGS ?= $(AX_SWIG_PYTHON_CPPFLAGS)
66SWIG_PYTHON_OPT ?= $(AX_SWIG_PYTHON_OPT)
67
68#
69# SWIG
70EXTRA_DIST += swig/abac.i swig/perl/language.i swig/perl/chunk.i \
71              swig/python/chunk.i swig/python/language.i
72
73#
74# Python
75#
76pythondir = @PYTHON_SITE_PKG@
77bin_SCRIPTS = swig/python/abac_prover.py
78python_PYTHON = swig/python/ABAC.py
79pyexec_LTLIBRARIES = swig/python/_ABAC.la
80# Swig/Python/ABAC
81swig_python__ABAC_la_SOURCES = swig/python/abac_wrap.cxx swig/python/ABAC.py \
82                               swig/python/chunk.i swig/python/language.i \
83                               swig/python/abac_prover.py
84swig_python__ABAC_la_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS)
85swig_python__ABAC_la_LDFLAGS = -module
86swig_python__ABAC_la_LIBADD = $(top_builddir)/libabac/libabac.la
87
88# ABAC.py is created as a side effect
89swig/python/ABAC.py swig/python/abac_wrap.cxx: swig/python/language.i swig/python/chunk.i
90        if test ! -e swig/python/abac.h ; then \
91                $(LN_S) $(abs_srcdir)/libabac/abac.h swig/python/abac.h ; \
92        fi
93        if test ! -e swig/python/abac.hh ; then \
94                $(LN_S) $(abs_srcdir)/libabac/abac.hh swig/python/abac.hh ; \
95        fi
96        if test ! -e swig/python/abac.i ; then \
97                $(LN_S) $(abs_srcdir)/swig/abac.i swig/python/abac.i ; \
98        fi
99        $(SWIG) $(SWIG_PYTHON_OPT) -o swig/python/abac_wrap.cxx swig/python/abac.i
100
101#
102# Perl
103#
104perldir = @SITE_PERL@
105bin_SCRIPTS += swig/perl/abac_prover.pl
106perl_SCRIPTS = swig/perl/abac_wrap.cxx swig/perl/ABAC.pm
107perl_LTLIBRARIES = swig/perl/ABAC.la
108# Swig/Perl/ABAC
109swig_perl_ABAC_la_SOURCES = swig/perl/abac_wrap.cxx swig/perl/SSL_keyid.c \
110                            swig/perl/SSL_keyid.h  swig/perl/ABAC.pm      \
111                            swig/perl/chunk.i swig/perl/language.i \
112                            swig/perl/abac_prover.pl
113swig_perl_ABAC_la_CPPFLAGS = `perl -MExtUtils::Embed -e ccopts`
114swig_perl_ABAC_la_LDFLAGS = -module
115swig_perl_ABAC_la_LIBADD = $(top_builddir)/libabac/libabac.la -lssl
116
117# ABAC.pm is created as a side effect
118swig/perl/ABAC.pm swig/perl/abac_wrap.cxx: swig/perl/chunk.i swig/perl/language.i
119        if test ! -e swig/perl/abac.h ; then \
120                $(LN_S) $(abs_srcdir)/libabac/abac.h swig/perl/abac.h ; \
121        fi
122        if test ! -e swig/perl/abac.hh ; then \
123                $(LN_S) $(abs_srcdir)/libabac/abac.hh swig/perl/abac.hh ; \
124        fi
125        if test ! -e swig/perl/abac.i ; then \
126                $(LN_S) $(abs_srcdir)/swig/abac.i swig/perl/abac.i ; \
127        fi
128        $(SWIG) -perl -o swig/perl/abac_wrap.cxx swig/perl/abac.i
129
130# misc
131INCLUDES = -I$(top_builddir)/libabac \
132           $(XMLSEC1_INCLUDES) $(XML2_INCLUDES) $(OPENSSL_INCLUDEs)
133
134AM_CFLAGS = -DABAC_VERSION=\""$(VERSION)\"" -Wall -Werror
135
136ACLOCAL_AMFLAGS=-I m4
137
138CLEANFILES = $(perl_SCRIPTS) $(python_PYTHON)
139
140library_includedir=$(includedir)
141library_include_HEADERS = libabac/abac.h libabac/abac.hh
142
143.PHONY: clean-local-java install-exec-local clean-local-doc clean-local-swig clean-local-tests testing api
144
145clean-local:    clean-local-java clean-local-doc clean-local-swig clean-local-tests
146
147clean-local-java:
148        if which ant 2> /dev/null ; then \
149                cd java && ant clean ; \
150        fi
151
152clean-local-doc:
153        rm -rf doc/extract_doc
154
155clean-local-swig:
156        rm -rf swig/perl/abac_wrap.cxx swig/python/abac_wrap.cxx
157
158clean-local-tests:
159        cd tests && ( if [ -f Makefile ]; then make clean; fi)
160
161dist-hook:
162        if which ant ; then \
163                cd $(distdir)/java && ant clean ; \
164        fi
165        cd tests && ( if [ -f Makefile ]; then make clean; fi)
166        cd cred_printer && make clean
167
168api: doc/extract_doc.c
169        $(CC) -o doc/extract_doc doc/extract_doc.c
170        cp libabac/abac.hh doc/abac.hh 
171        cd doc && pwd && ./extract_doc
172
173testing:
174        cd tests && make clean && make -s tests
175
176install-data-hook:
177        @echo ''
178        @echo '+--------------------------------------------------------------+'
179        @echo '| A friendly reminder:                                         |'
180        @echo '| If you have not already run "make testing", then we strongly |'
181        @echo '|   recommend you do so to expose any possible setup problem   |'
182        @echo '| For testing Java api, please run "ant regression-test"       |'
183        @echo '|   in java directory                                          |'
184        @echo '+--------------------------------------------------------------+'
185        @echo ''
186
187
Note: See TracBrowser for help on using the repository browser.