Makefile 1.02 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
23

labcomm.jar: gen/JAVAC
24
	echo $@
Tommy Olofsson's avatar
Tommy Olofsson committed
25
	cd gen ; jar cfm ../$@ ../osgi-manifest.txt se/lth/control/labcomm/*.class se/lth/control/labcomm2006/*.class
26

27
labcomm2014.jar: gen/JAVAC
Anders Blomdell's avatar
Anders Blomdell committed
28
	echo $@
Tommy Olofsson's avatar
Tommy Olofsson committed
29
	cd gen ; jar cfm ../$@ ../osgi-manifest.txt se/lth/control/labcomm/*.class
Anders Blomdell's avatar
Anders Blomdell committed
30

31
32
labcomm2006.jar: gen/JAVAC
	echo $@
Tommy Olofsson's avatar
Tommy Olofsson committed
33
	cd gen ; jar cfm ../$@ ../osgi-manifest.txt se/lth/control/labcomm2006/*.class
34

Anders Blomdell's avatar
Anders Blomdell committed
35
36
37
gen:
	mkdir gen

38
gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) $(MODULES:%=se/lth/control/labcomm2006/%.java) Makefile | gen
39
	javac -cp ../../compiler/labcomm_compiler.jar -d gen $(filter %.java, $^) 
Anders Blomdell's avatar
Anders Blomdell committed
40
41
	touch $@

42
43
44

.PHONY: clean

Anders Blomdell's avatar
Anders Blomdell committed
45
clean:
Tommy Olofsson's avatar
Tommy Olofsson committed
46
	rm -rf labcomm.jar labcomm2006.jar labcomm2014.jar gen
47
48
49
50

.PHONY: distclean

distclean: clean