source: examples/example_scripts/c/Makefile @ ecb1628

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since ecb1628 was 4721618, checked in by Mei <mei@…>, 12 years ago

1) tested out python and perl test scripts along with

abac_chunk_t calls in libabac's abac.hh

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