source: examples/example_scripts/c/Makefile @ 97a6a36

mei_rt2mei_rt2_fix_1
Last change on this file since 97a6a36 was 97a6a36, checked in by Mei <mei@…>, 12 years ago

1) added java to libabac using swig
2) added java examples (setup/prover) into regression test suites
(note. still have that libstrongswan/src/threading/threads.c/thread_deinit()
problem when using using libabac with java)

  • Property mode set to 100644
File size: 1.8 KB
Line 
1all: attr prove attr_partial
2
3abac_attr.o: abac_attr.c
4        gcc -g -I/usr/local/include -c abac_attr.c -o abac_attr.o
5
6abac_attr: abac_attr.o
7        gcc -g -o abac_attr abac_attr.o -L/usr/local/lib -L/usr/local/lib/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
8
9abac_attr_partial.o: abac_attr_partial.c
10        gcc -g -I/usr/local/include -c abac_attr_partial.c -o abac_attr_partial.o
11
12abac_attr_partial: abac_attr_partial.o
13        gcc -g -o abac_attr_partial abac_attr_partial.o -L/usr/local/lib -L/usr/local/lib/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
14
15abac_prover.o: abac_prover.c
16        gcc -g -I/usr/local/include -c abac_prover.c -o abac_prover.o
17
18abac_prover: abac_prover.o
19        gcc -g -o abac_prover abac_prover.o -L/usr/local/lib -L/usr/local/lib/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
20
21tchunk: tchunk.c
22        gcc -g -I/usr/local/include -c tchunk.c -o tchunk.o
23        gcc -g -o tchunk tchunk.o -L/usr/local/lib -L/usr/local/lib/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
24        ./tchunk 0 IceCream_ID.pem IceCream_private.pem
25        ./tchunk 1 IceCream_ID.pem IceCream_private.pem
26
27clean:
28        @rm -f abac_attr.o abac_attr *.pem *.der abac_prover.o abac_prover *.log abac_attr_partial.o abac_attr_partial
29
30setup: abac_attr abac_prover abac_attr_partial
31        creddy --generate --cn IceCream
32        creddy --generate --cn Chocolate
33
34attr: 
35        rm -rf attr.log
36        make setup
37        ./abac_attr IceCream_ID.pem  IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1
38
39attr_partial: 
40        rm -rf attr_partial.log
41        make setup
42        ./abac_attr_partial IceCream_ID.pem  IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr_partial.log 2>&1
43
44prove: 
45        rm -rf prover.log
46        make attr
47        ./run_prover 1>prover.log 2>&1
48
Note: See TracBrowser for help on using the repository browser.