source: Makefile.am @ f89b991

mei_rt2
Last change on this file since f89b991 was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[14aa716]1# libabac
[2efdff5]2lib_LTLIBRARIES = libabac/libabac.la
[202a7f9]3bin_PROGRAMS = libabac/abac_prover_yap creddy/creddy
[4918535]4
[09531ca]5if HAVE_JNI
6BUILT_SOURCES  = swig/python/ABAC.py swig/python/abac_wrap.cxx swig/perl/ABAC.pm swig/perl/abac_wrap.cxx swig/java/abac_wrap.cxx
7else
8BUILT_SOURCES  = swig/python/ABAC.py swig/python/abac_wrap.cxx swig/perl/ABAC.pm swig/perl/abac_wrap.cxx
9endif
[0f9615e]10
[4918535]11libabac_libabac_la_SOURCES = \
12    libabac/abac.c \
13    libabac/abac.h \
14    libabac/abac_list.c \
15    libabac/abac_list.h \
[202a7f9]16    libabac/abac_stack.c \
17    libabac/abac_stack.h \
[8bd77b5]18    libabac/abac_aspect.c \
19    libabac/abac_id.c \
[ba6027a]20    libabac/abac_key.c \
[8bd77b5]21    libabac/abac_attribute.c \
[4918535]22    libabac/abac_set.c \
23    libabac/abac_set.h \
24    libabac/abac_util.c \
25    libabac/abac_util.h \
[2e9455f]26    libabac/abac_util_cert.c \
27    libabac/abac_util_cert.h \
[4918535]28    libabac/abac_verifier.c \
[8bd77b5]29    libabac/abac_term.c \
[2e9455f]30    libabac/abac_context.c \
31    libabac/abac_context.h \
[202a7f9]32    libabac/abac_pl_gen.c \
[2e9455f]33    libabac/abac_pl_gen.h \
[440ba20]34    libabac/abac_pl_pre.c \
[2e9455f]35    libabac/abac_pl_pre.h \
[202a7f9]36    libabac/abac_pl_yy.c \
37    libabac/abac_pl_yy.h \
38    libabac/rt2.c \
39    libabac/rt2.yy.c \
[2e9455f]40    libabac/rt2.yy.h \
[202a7f9]41    libabac/abac_pl_yap.c \
42    libabac/abac_pl_yap.h \
[5d06689]43    libabac/abac_c.c \
[2e9455f]44    libabac/abac_c.h \
[da5afdf]45    libabac/abac_m64.c \
[2e9455f]46    libabac/abac_m64.h \
[4918535]47    libabac/uthash.h \
48    libabac/utlist.h
49
[53e540d]50
[2f43ba6]51libabac_libabac_la_LDFLAGS = -version-info 1:2:1
[2e9455f]52libabac_libabac_la_LIBADD = -lstrongswan -lYap -lreadline -lm -lz
[14aa716]53
[53e540d]54## prover_yap
[8bd77b5]55libabac_abac_prover_yap_SOURCES = libabac/prover_yap.c libabac/options.c libabac/abac.h libabac/abac_pl_yap.h
[202a7f9]56libabac_abac_prover_yap_LDADD = $(top_builddir)/libabac/libabac.la $(libabac_libabac_la_LIBADD)
[2e9455f]57yy_PARSER = libabac/rt2.yy.c libabac/rt2.yy.h libabac/rt2.c libabac/rt2.h
[202a7f9]58
[2e9455f]59libabac/rt2.yy.c : libabac/rt2.l
[202a7f9]60        $(LEX) -o libabac/rt2.yy.c libabac/rt2.l
[2e9455f]61libabac/rt2.c : libabac/rt2.y libabac/rt2.yy.c libabac/rt2_yy.h
[c3c73bd]62        $(YACC) -d -o libabac/rt2.c libabac/rt2.y
[53e540d]63
[14aa716]64# creddy
[085f159]65creddy_creddy_SOURCES = \
66    creddy/attribute.c \
67    creddy/creddy.c \
68    creddy/creddy.h \
[0aaa651]69    creddy/display.c \
[085f159]70    creddy/generate.c \
[ba6027a]71    creddy/keycheck.c \
[9410b51]72    creddy/keyid.c \
[784a398]73    creddy/roles.c \
[04f5da1]74    creddy/verify.c \
[2e9455f]75    creddy/attribute_now.c \
[2efdff5]76    creddy/creddy_internal.h
[085f159]77
[2efdff5]78creddy_creddy_LDADD = $(top_builddir)/libabac/libabac.la
[abd7c25]79
[b02d665]80man1_MANS = doc/creddy.1
81
[948ad62]82# FreeBSD autoconf archive sets these instead of the right ones after some
83# version.  These lines fall back to the AX_ versions of the swig parameters if
84# the bare SWIG_ versions are not set.
85SWIG_PYTHON_CPPFLAGS ?= ${AX_SWIG_PYTHON_CPPFLAGS}
86SWIG_PYTHON_OPT ?= ${AX_SWIG_PYTHON_OPT}
87
[2c78540]88#
89# Python
90#
[e205b49]91#bin_SCRIPTS = swig/python/abac_prover.py swig/python/abac_keyid.py swig/python/abac_attr.py
[2efdff5]92python_PYTHON = swig/python/ABAC.py
93pyexec_LTLIBRARIES = swig/python/_ABAC.la
[09531ca]94## ABAC
[0f9615e]95swig_python__ABAC_la_SOURCES = swig/python/abac_wrap.cxx swig/python/ABAC.py
[43a5429]96swig_python__ABAC_la_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS)
97swig_python__ABAC_la_LDFLAGS = -module
98swig_python__ABAC_la_LIBADD = $(top_builddir)/libabac/libabac.la
[48fa0ee]99# ABAC.py is created as a side effect
[97a6a36]100swig/python/ABAC.py swig/python/abac_wrap.cxx:  swig/python/abac.i swig/python/chunk.i swig/python/language.i
[48fa0ee]101        $(SWIG) $(SWIG_PYTHON_OPT) -o swig/python/abac_wrap.cxx swig/python/abac.i
[43a5429]102
[2e046a2]103#
104# Perl
105#
[e205b49]106#bin_SCRIPTS += swig/perl/abac_prover.pl swig/perl/abac_keyid.pl
[48fa0ee]107perldir = @SITE_PERL@
[2efdff5]108perl_SCRIPTS = swig/perl/ABAC.pm
109perl_LTLIBRARIES = swig/perl/ABAC.la
[09531ca]110## ABAC
[0f9615e]111swig_perl_ABAC_la_SOURCES = swig/perl/abac_wrap.cxx swig/perl/SSL_keyid.c swig/perl/ABAC.pm
[f1463c6]112swig_perl_ABAC_la_CPPFLAGS = `perl -MExtUtils::Embed -e ccopts`
113swig_perl_ABAC_la_LDFLAGS = -module
114swig_perl_ABAC_la_LIBADD = $(top_builddir)/libabac/libabac.la -lssl
[48fa0ee]115# ABAC.pm is created as a side effect
[97a6a36]116swig/perl/ABAC.pm swig/perl/abac_wrap.cxx: swig/perl/abac.i swig/perl/chunk.i swig/perl/language.i
[48fa0ee]117        $(SWIG) -perl -o swig/perl/abac_wrap.cxx swig/perl/abac.i
[f1463c6]118
[97a6a36]119#
120# JAVA
121#
[09531ca]122if HAVE_JNI
[97a6a36]123#bin_SCRIPTS = swig/java/ProverTest.java
124jexecdir = $(libdir)
125jexec_CLASSPATH = $(abs_top_builddir)/swig/java/build/classes
[09531ca]126jexec_PROG = swig/java/abac_wrap.cxx
[97a6a36]127jexec_CPPFLAGS=`-package net.deterlab.abac -outdir $(top_builddir)/swig/java/net/deterlab/abac`
128jexec_LTLIBRARIES = swig/java/libjABAC.la
[09531ca]129## jABAC
[97a6a36]130swig_java_libjABAC_la_SOURCES = swig/java/abac_wrap.cxx
131swig_java_libjABAC_la_CPPFLAGS = @JAVA_CPPFLAGS@
132swig_java_libjABAC_la_LDFLAGS = -module
133swig_java_libjABAC_la_LIBADD = $(top_builddir)/libabac/libabac.la
134
135swig/java/abac_wrap.cxx: swig/java/abac.i swig/java/build.xml
136        rm -rf swig/java/net
137        $(MKDIR_P) swig/java/net/deterlab/abac
138        @echo ""
139        @echo "You should set your CLASSPATH to $(jexec_CLASSPATH) for Java "
140        @echo ""
141        $(SWIG) -java -package net.deterlab.abac -o swig/java/abac_wrap.cxx -outdir $(top_builddir)/swig/java/net/deterlab/abac swig/java/abac.i
[09531ca]142endif
[97a6a36]143
[09531ca]144#
[6159c8d]145# preprove
[e205b49]146bin_SCRIPTS = preprover/abac_preprover_client.pl preprover/abac_preprover_server.pl
[6159c8d]147
[09531ca]148#
[14aa716]149# misc
[4918535]150LIBSTRONGSWAN_source = @LIBSTRONGSWAN_source@
[53e540d]151GPROLOG_source = @GPROLOG_source@
[4918535]152
[53e540d]153INCLUDES = -I$(LIBSTRONGSWAN_source)/src/libstrongswan -I$(top_builddir)/libabac -I$(top_builddir)/creddy -I$(LIBGPROLOG_source)/include
[4918535]154AM_CFLAGS = \
[19be896]155        -DPLUGINS=\""${libstrongswan_plugins}\"" \
[46df1bc]156        -DYAP_VERSION=\""${YAP_VERSION}\"" \
[19be896]157        -DABAC_VERSION=\""${VERSION}\""
[4918535]158
159ACLOCAL_AMFLAGS=-I m4
160
[97a6a36]161CLEANFILES = $(perl_SCRIPTS) $(python_PYTHON) $(jexec_PROG) $(yy_PARSER)
[0f9615e]162
[4918535]163library_includedir=$(includedir)
[2e9455f]164library_include_HEADERS = libabac/abac.h libabac/abac.hh libabac/abac_defines.h creddy/creddy.h libabac/abac_external.h libabac/abac_c.h
Note: See TracBrowser for help on using the repository browser.