source: examples/example_scripts/c/Makefile @ 41d99fb

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

1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there

  • Property mode set to 100644
File size: 951 bytes
Line 
1all: attr prove
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_prover.o: abac_prover.c
10        gcc -g -I/usr/local/include -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 -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 *.log
18
19setup: abac_attr abac_prover
20        creddy --generate --cn IceCream
21        creddy --generate --cn Chocolate
22
23attr: 
24        make clean
25        rm -rf attr.log
26        make setup
27        ./abac_attr IceCream_ID.pem  IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1
28
29prove: 
30        rm -rf prover.log
31        make attr
32        run_prover 1>prover.log 2>&1
33
Note: See TracBrowser for help on using the repository browser.