source: Makefile.am @ b8a6c918

abac0-leak
Last change on this file since b8a6c918 was fab32c1, checked in by Ted Faber <faber@…>, 11 years ago

Clean regression tests between runs

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[ec550f7]1#
[14aa716]2# libabac
[367e333]3# (0.1.6)
[abd7c25]4bin_PROGRAMS = libabac/abac_prover libabac/abac_prover_plus \
5               creddy/creddy
[3c30b59]6EXTRA_DIST = doc java cred_printer tests
[0f9615e]7
[ec550f7]8lib_LTLIBRARIES = libabac/libabac.la
[4918535]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 \
[94605f2]16    libabac/abac_keyid_map.c \
[4918535]17    libabac/abac_role.c \
18    libabac/abac_set.c \
19    libabac/abac_set.h \
[461541a]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 \
[4918535]26    libabac/abac_util.c \
27    libabac/abac_util.h \
28    libabac/abac_verifier.c \
29    libabac/abac_verifier.h \
[461541a]30    libabac/compat/readpassphrase.c \
31    libabac/compat/readpassphrase.h \
32    libabac/libabac_common.h \
[4918535]33    libabac/uthash.h \
34    libabac/utlist.h
[ab52de1]35libabac_libabac_la_LDFLAGS = -version-info 2:0:0
[461541a]36libabac_libabac_la_LIBADD = $(XML2_LDFLAGS) $(XMLSEC1_LDFLAGS) $(OPENSSL_LIBS)
[14aa716]37
[3c30b59]38libabac_abac_prover_SOURCES = libabac/prover.c libabac/options.c libabac/options.h \
39                              libabac/abac.h
[85919b8]40libabac_abac_prover_LDADD = $(top_builddir)/libabac/libabac.la
[4918535]41
[3c30b59]42libabac_abac_prover_plus_SOURCES = libabac/prover_plus.cc libabac/options.c \
43                                   libabac/options.h libabac/abac.hh
[85919b8]44libabac_abac_prover_plus_LDADD = $(top_builddir)/libabac/libabac.la
[4918535]45
[ec550f7]46#
[14aa716]47# creddy
[ec550f7]48#
[085f159]49creddy_creddy_SOURCES = \
[66ae396]50    creddy/creddy_common.h \
[085f159]51    creddy/attribute.c \
[461541a]52    creddy/attribute_rule.c \
[085f159]53    creddy/creddy.c \
[0aaa651]54    creddy/display.c \
[085f159]55    creddy/generate.c \
[9410b51]56    creddy/keyid.c \
[784a398]57    creddy/roles.c \
[461541a]58    creddy/verify.c
59creddy_creddy_LDADD = $(top_builddir)/libabac/libabac.la
[b02d665]60man1_MANS = doc/creddy.1
61
[948ad62]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.
[3c30b59]65SWIG_PYTHON_CPPFLAGS ?= $(AX_SWIG_PYTHON_CPPFLAGS)
66SWIG_PYTHON_OPT ?= $(AX_SWIG_PYTHON_OPT)
[948ad62]67
[ec550f7]68#
[3c30b59]69# SWIG
[ec550f7]70EXTRA_DIST += swig/abac.i swig/perl/language.i swig/perl/chunk.i \
71              swig/python/chunk.i swig/python/language.i
[3c30b59]72
[2c78540]73#
74# Python
75#
[b040eea]76pythondir = @PYTHON_SITE_PKG@
[0d6b61a]77bin_SCRIPTS = swig/python/abac_prover.py
[4721618]78python_PYTHON = swig/python/ABAC.py
79pyexec_LTLIBRARIES = swig/python/_ABAC.la
[11e4486]80# Swig/Python/ABAC
[ec550f7]81swig_python__ABAC_la_SOURCES = swig/python/abac_wrap.cxx swig/python/ABAC.py \
[3c30b59]82                               swig/python/chunk.i swig/python/language.i \
83                               swig/python/abac_prover.py
[43a5429]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
[48fa0ee]88# ABAC.py is created as a side effect
[ec550f7]89swig/python/ABAC.py swig/python/abac_wrap.cxx: swig/python/language.i swig/python/chunk.i
[e179f48]90        if test ! -e swig/python/abac.h ; then \
[2f0f2db]91                $(LN_S) $(abs_srcdir)/libabac/abac.h swig/python/abac.h ; \
[e179f48]92        fi
93        if test ! -e swig/python/abac.hh ; then \
[2f0f2db]94                $(LN_S) $(abs_srcdir)/libabac/abac.hh swig/python/abac.hh ; \
[e179f48]95        fi
[bac5e14]96        if test ! -e swig/python/abac.i ; then \
[2f0f2db]97                $(LN_S) $(abs_srcdir)/swig/abac.i swig/python/abac.i ; \
[bac5e14]98        fi
[48fa0ee]99        $(SWIG) $(SWIG_PYTHON_OPT) -o swig/python/abac_wrap.cxx swig/python/abac.i
[43a5429]100
[2e046a2]101#
102# Perl
103#
[48fa0ee]104perldir = @SITE_PERL@
[ec550f7]105bin_SCRIPTS += swig/perl/abac_prover.pl
[3c30b59]106perl_SCRIPTS = swig/perl/abac_wrap.cxx swig/perl/ABAC.pm
[4721618]107perl_LTLIBRARIES = swig/perl/ABAC.la
[11e4486]108# Swig/Perl/ABAC
[ec550f7]109swig_perl_ABAC_la_SOURCES = swig/perl/abac_wrap.cxx swig/perl/SSL_keyid.c \
[3c30b59]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
[f1463c6]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
[48fa0ee]117# ABAC.pm is created as a side effect
[ec550f7]118swig/perl/ABAC.pm swig/perl/abac_wrap.cxx: swig/perl/chunk.i swig/perl/language.i
[d9646d0]119        if test ! -e swig/perl/abac.h ; then \
120                $(LN_S) $(abs_srcdir)/libabac/abac.h swig/perl/abac.h ; \
[e179f48]121        fi
[d9646d0]122        if test ! -e swig/perl/abac.hh ; then \
123                $(LN_S) $(abs_srcdir)/libabac/abac.hh swig/perl/abac.hh ; \
[e179f48]124        fi
[d9646d0]125        if test ! -e swig/perl/abac.i ; then \
[2f0f2db]126                $(LN_S) $(abs_srcdir)/swig/abac.i swig/perl/abac.i ; \
[bac5e14]127        fi
[48fa0ee]128        $(SWIG) -perl -o swig/perl/abac_wrap.cxx swig/perl/abac.i
[f1463c6]129
[14aa716]130# misc
[ec550f7]131INCLUDES = -I$(top_builddir)/libabac \
132           $(XMLSEC1_INCLUDES) $(XML2_INCLUDES) $(OPENSSL_INCLUDEs)
[4918535]133
[3c30b59]134AM_CFLAGS = -DABAC_VERSION=\""$(VERSION)\""
[4918535]135
136ACLOCAL_AMFLAGS=-I m4
137
[0f9615e]138CLEANFILES = $(perl_SCRIPTS) $(python_PYTHON)
139
[4918535]140library_includedir=$(includedir)
[461541a]141library_include_HEADERS = libabac/abac.h libabac/abac.hh
142
[3c30b59]143.PHONY: clean-local-java install-exec-local clean-local-doc clean-local-swig clean-local-tests testing api
[b040eea]144
[3c30b59]145clean-local:    clean-local-java clean-local-doc clean-local-swig clean-local-tests
[a1436d7]146
147clean-local-java:
148        if which ant 2> /dev/null ; then \
149                cd java && ant clean ; \
150        fi
151
[ec550f7]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
[a1436d7]157
[3c30b59]158clean-local-tests:
[1afd681]159        cd tests && ( if -f Makefile; then make clean; fi)
[3c30b59]160
[a1436d7]161dist-hook:
162        if which ant ; then \
163                cd $(distdir)/java && ant clean ; \
164        fi
[1afd681]165        cd tests && ( if -f Makefile; then make clean; fi)
[3c30b59]166        cd cred_printer && make clean
[ec550f7]167
[3c30b59]168api: doc/extract_doc.c
[ec550f7]169        $(CC) -o doc/extract_doc doc/extract_doc.c
[3c30b59]170        cp libabac/abac.hh doc/abac.hh 
171        cd doc && pwd && ./extract_doc
172
173testing:
[fab32c1]174        cd tests && make clean && make -s tests
[ec550f7]175
176install-data-hook:
177        @echo ''
[1afd681]178        @echo '+--------------------------------------------------------------+'
179        @echo '| A friendly reminder:                                         |'
180        @echo '| If you have not already run "make testing", then we strongly |'
[1bf0f03]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                                          |'
[1afd681]184        @echo '+--------------------------------------------------------------+'
[ec550f7]185        @echo ''
186
187
Note: See TracBrowser for help on using the repository browser.