source: examples/example_scripts/python/Makefile @ 33a9212

mei_rt2mei_rt2_fix_1
Last change on this file since 33a9212 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: 959 bytes
RevLine 
[bea18ef]1
2all: run_attr run_e_attr run_id run_id2 run_prove
3
[ba6027a]4clean:
[2485307]5        @rm -f *.pem *.der *.log pfile
[ba6027a]6
[bea18ef]7setup:
8        creddy --generate --cn IceCream
9        creddy --generate --cn Chocolate
10
[ba6027a]11run_attr: 
12        make clean
13        rm -rf attr.log
[bea18ef]14        make setup
[ba6027a]15        ./abac_attr.py IceCream_ID.pem IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1
16
17run_e_attr: 
18        make clean
19        rm -rf e_attr.log pfile
20        echo "dumdum" > pfile
21        openssl genrsa -des3 -out Soda_private.pem -passout file:pfile
22        creddy --generate --cn Soda --key Soda_private.pem --p=pfile
23        creddy --generate --cn Cream
24        ./abac_e_attr.py Soda_ID.pem Soda_private.pem Soda_attr.der pfile Cream_ID.pem 1>e_attr.log 2>&1
25
26run_id: 
27        make clean
28        rm -rf id.log
[bea18ef]29        make setup
[ba6027a]30        ./abac_keyid.py IceCream_ID.pem 1>id.log 2>&1
31                             
32run_id2: 
33        make clean
34        rm -rf id2.log
[bea18ef]35        make setup
[ba6027a]36        ./abac_keyid.py IceCream_private.pem 1>id2.log 2>&1
[bea18ef]37
38run_prove:
39        rm -rf prover.log
40        make run_attr
41        ./run_prover 1>prover.log 2>& 1
Note: See TracBrowser for help on using the repository browser.