-
Notifications
You must be signed in to change notification settings - Fork 2
/
OMakefile
43 lines (33 loc) · 920 Bytes
/
OMakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
USE_OCAMLFIND = true
BYTE_ENABLED = true
FILES[] =
atdj_env
atdj_names
atdj_util
atdj_trans
atdj_helper
atdj_main
OCAMLFLAGS = -dtypes -g
OCAMLPACKS = str unix atd atdgen
CLASSPATH = '.:json.jar:junit-4.8.2.jar'
.SUBDIRS: doc
.DEFAULT: atdj.opt
.PHONY: clean
.PHONY: doc
doc: README
README: doc/readme.txt
cp doc/readme.txt README
.PHONY: test
test: atdj.opt test.atd
./atdj.opt test.atd -package com.mylife.test
javac -classpath $(CLASSPATH) com/mylife/test/*.java
javac -classpath $(CLASSPATH) AtdjTest.java
javadoc -classpath $(CLASSPATH) -d doc/test -public com.mylife.test
java -classpath $(CLASSPATH) AtdjTest
clean:
rm -f *.o *.a *.cm* *~ *.annot atdj atdj.opt TAGS
rm -f AtdjTest*.class
rm -f PsapiResponseExample*.class psapi_response.dot \
psapi_response.pdf psapi_response_example.out
rm -rf com doc/example doc/test
OCamlProgram(atdj, $(FILES))