1 | #!/bin/make |
---|
2 | # $Id: Makefile,v 1.18 2003/07/16 16:27:39 jjacobs Exp $ |
---|
3 | # |
---|
4 | JAVAC=javac -g |
---|
5 | #JAVAC=jikes +E -g |
---|
6 | CLASSDIR=classes |
---|
7 | CATALINA=/var/tomcat4 |
---|
8 | DOCTITLE="Attribute Based Access Control (ABAC)" |
---|
9 | WINDOWTITLE="Attribute Based Access Control (ABAC)" |
---|
10 | LICENSE="<FONT SIZE="-1">Portions copyrighted © 2001-2, Networks Associates Technology, Inc. All rights reserved <BR> Funded by DARPA through SPAWAR contract N66001-01-C-8005</FONT>" |
---|
11 | TTG=. |
---|
12 | RBTM=../rbtm |
---|
13 | SRCDIR=$(TTG):$(RBTM) |
---|
14 | |
---|
15 | all: classes jar |
---|
16 | |
---|
17 | doc: Makefile |
---|
18 | ln -s . com; ln -s . nailabs; ln -s . abac |
---|
19 | pushd ../rbtm; \ |
---|
20 | ln -s . edu; ln -s . stanford; ln -s . peer; ln -s . rbtm; \ |
---|
21 | popd |
---|
22 | javadoc -package -d doc -sourcepath $(SRCDIR) \ |
---|
23 | -doctitle $(DOCTITLE) -bottom $(LICENSE)\ |
---|
24 | -windowtitle $(WINDOWTITLE) \ |
---|
25 | edu.stanford.peer.rbtm.credential \ |
---|
26 | edu.stanford.peer.rbtm.engine \ |
---|
27 | edu.stanford.peer.rbtm.util \ |
---|
28 | edu.stanford.peer.rbtm.test \ |
---|
29 | com.nailabs.abac.trust \ |
---|
30 | com.nailabs.abac.process \ |
---|
31 | com.nailabs.abac.credential\ |
---|
32 | com.nailabs.abac.test |
---|
33 | rm com; rm nailabs; rm abac |
---|
34 | pushd $(RBTM); rm edu stanford peer rbtm; popd |
---|
35 | |
---|
36 | stubs: |
---|
37 | cd classes;\ |
---|
38 | rmic -classpath .:classes:${CLASSPATH}\ |
---|
39 | com.nailabs.abac.process.RMINegotiator \ |
---|
40 | com.nailabs.abac.test.ClientRTMLService \ |
---|
41 | com.nailabs.abac.test.ClientAuthenticationService |
---|
42 | |
---|
43 | cleandoc: |
---|
44 | rm com; rm nailabs; rm abac |
---|
45 | pushd ~/rbtm ; rm edu stanford peer rbtm |
---|
46 | |
---|
47 | clean: |
---|
48 | @echo Cleaning up class files and javadoc... |
---|
49 | @rm -rf classes/com |
---|
50 | @rm -rf doc/* |
---|
51 | |
---|
52 | jar: stubs |
---|
53 | cd classes; jar cvf abac.jar com |
---|
54 | |
---|
55 | classes: |
---|
56 | $(JAVAC) -cp ${CLASSPATH} -d $(CLASSDIR) \ |
---|
57 | trust/*.java \ |
---|
58 | process/*.java \ |
---|
59 | credential/*.java \ |
---|
60 | test/*.java |
---|
61 | |
---|
62 | .PHONY: clean classes jar doc cleandoc install |
---|