Makefile 1.13 KB
Newer Older
Anders Blomdell's avatar
Anders Blomdell committed
1
2
3
4
5
6
7
8
9
10
11
MODULES=Constant \
	Decoder \
	DecoderChannel \
	DecoderRegistry \
	Encoder \
	EncoderChannel \
	EncoderRegistry \
	Reader \
	Sample \
	SampleDispatcher \
	SampleHandler \
Anders Blomdell's avatar
Anders Blomdell committed
12
	SampleType \
13
	BuiltinType \
14
	TypeDef \
15
	TypeBinding \
Sven Gestegård Robertz's avatar
Sven Gestegård Robertz committed
16
	ASTbuilder \
17
	TypeDefParser \
Anders Blomdell's avatar
Anders Blomdell committed
18
	Writer \
19
	WriterWrapper
Anders Blomdell's avatar
Anders Blomdell committed
20

21
all: labcomm.jar labcomm2014.jar labcomm2006.jar
Anders Blomdell's avatar
Anders Blomdell committed
22

Anders Blomdell's avatar
Anders Blomdell committed
23
labcomm.jar: gen/JAVAC osgi-manifest-all.txt
24
	echo $@
Anders Blomdell's avatar
Anders Blomdell committed
25
26
27
	cd gen ; jar cfm ../$@ ../osgi-manifest-all.txt \
		se/lth/control/labcomm/*.class \
		se/lth/control/labcomm2006/*.class
28

Anders Blomdell's avatar
Anders Blomdell committed
29
labcomm2014.jar: gen/JAVAC osgi-manifest-2014.txt
Anders Blomdell's avatar
Anders Blomdell committed
30
	echo $@
Anders Blomdell's avatar
Anders Blomdell committed
31
32
	cd gen ; jar cfm ../$@ ../osgi-manifest-2014.txt \
		se/lth/control/labcomm/*.class
Anders Blomdell's avatar
Anders Blomdell committed
33

Anders Blomdell's avatar
Anders Blomdell committed
34
labcomm2006.jar: gen/JAVAC osgi-manifest-2006.txt
35
	echo $@
Anders Blomdell's avatar
Anders Blomdell committed
36
37
	cd gen ; jar cfm ../$@ ../osgi-manifest-2006.txt \
		se/lth/control/labcomm2006/*.class
38

Anders Blomdell's avatar
Anders Blomdell committed
39
40
41
gen:
	mkdir gen

Anders Blomdell's avatar
Anders Blomdell committed
42
43
44
45
46
gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) \
	   $(MODULES:%=se/lth/control/labcomm2006/%.java) \
	   Makefile | gen
	javac -cp ../../compiler/labcomm_compiler.jar -d gen \
		$(filter %.java, $^) 
Anders Blomdell's avatar
Anders Blomdell committed
47
48
	touch $@

49
50

.PHONY: clean
Anders Blomdell's avatar
Anders Blomdell committed
51
clean:
Anders Blomdell's avatar
Anders Blomdell committed
52
	rm -rf gen
53
54

.PHONY: distclean
Anders Blomdell's avatar
Anders Blomdell committed
55
56
distclean:
	rm -rf labcomm.jar labcomm2006.jar labcomm2014.jar
57