abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since 7e3f5e2 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
|
Rev | Line | |
---|
[4721618] | 1 | |
---|
| 2 | LDFLAGS =-L/usr/local/lib -labac -lm -lpthread -Wl,-rpath |
---|
| 3 | |
---|
| 4 | all: attr prove tt |
---|
| 5 | |
---|
| 6 | abac_attr.o: abac_attr.c |
---|
| 7 | gcc -g -I/usr/local/include -c abac_attr.c -o abac_attr.o |
---|
| 8 | |
---|
| 9 | abac_attr: abac_attr.o |
---|
| 10 | gcc -g -o abac_attr abac_attr.o $(LDFLAGS) |
---|
| 11 | |
---|
| 12 | abac_prover.o: abac_prover.c |
---|
| 13 | gcc -g -I/usr/local/include -c abac_prover.c -o abac_prover.o |
---|
| 14 | |
---|
| 15 | abac_prover: abac_prover.o |
---|
| 16 | gcc -g -o abac_prover abac_prover.o $(LDFLAGS) |
---|
| 17 | |
---|
| 18 | tchunk: 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 | |
---|
| 24 | tt: 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 | |
---|
| 29 | clean: |
---|
| 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 | |
---|
| 34 | setup2: abac_attr abac_prover abac_attr_partial |
---|
| 35 | |
---|
| 36 | setup: abac_attr |
---|
| 37 | creddy --generate --cn IceCream |
---|
| 38 | creddy --generate --cn Chocolate |
---|
| 39 | |
---|
| 40 | attr: |
---|
| 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 | |
---|
| 45 | prove: abac_prover |
---|
| 46 | rm -rf prover.log |
---|
| 47 | make attr |
---|
| 48 | ./run_prover 1>prover.log 2>&1 |
---|
| 49 | |
---|
| 50 | mattr: attr.c |
---|
| 51 | gcc -g -o mattr attr.c $(LDFLAGS) |
---|
| 52 | mload: loader.c |
---|
| 53 | gcc -g -o mload loader.c $(LDFLAGS) |
---|
Note: See
TracBrowser
for help on using the repository browser.