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
RevLine 
[bea18ef]1all: attr prove
[ba6027a]2
3abac_attr.o: abac_attr.c
[880e924]4        gcc -g -I/usr/local/include -c abac_attr.c -o abac_attr.o
[ba6027a]5
6abac_attr: abac_attr.o
[880e924]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
[ba6027a]8
[bea18ef]9abac_prover.o: abac_prover.c
[880e924]10        gcc -g -I/usr/local/include -c abac_prover.c -o abac_prover.o
[bea18ef]11
12abac_prover: abac_prover.o
[880e924]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
[bea18ef]14
15
[ba6027a]16clean:
[08b8da7]17        @rm -f abac_attr.o abac_attr *.pem *.der abac_prover.o abac_prover *.log
[ba6027a]18
[bea18ef]19setup: abac_attr abac_prover
[ba6027a]20        creddy --generate --cn IceCream
[bea18ef]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.