source: examples/example_scripts/c/Makefile @ bea18ef

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

1) add more tiny prover tests in examples/example_scripts
2) reverted the changes to ABAC_VERSION in libabac's abac_util.c

  • Property mode set to 100644
File size: 955 bytes
Line 
1all: attr prove
2
3abac_attr.o: abac_attr.c
4        gcc -g -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/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
8
9abac_prover.o: abac_prover.c
10        gcc -g -c abac_prover.c -o abac_prover.o
11
12abac_prover: abac_prover.o
13        gcc -g -o abac_prover abac_prover.o -L/usr/local/lib/ipsec -labac -lYap -lreadline -lm -lstrongswan -Wl,-rpath -Wl,/usr/local/lib/ipsec
14
15
16clean:
17        rm -f abac_attr.o abac_attr *.pem *.der abac_prover.o abac_prover
18
19realclean: 
20        rm -f abac_attr.o abac_attr *.pem *.der abac_prover.o abac_prover *.log
21
22setup: abac_attr abac_prover
23        creddy --generate --cn IceCream
24        creddy --generate --cn Chocolate
25
26attr: 
27        make clean
28        rm -rf attr.log
29        make setup
30        ./abac_attr IceCream_ID.pem  IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1
31
32prove: 
33        rm -rf prover.log
34        make attr
35        run_prover 1>prover.log 2>&1
36
Note: See TracBrowser for help on using the repository browser.