Makefile 894 Bytes
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 \
Anders Blomdell's avatar
Anders Blomdell committed
13
	Writer \
14
	WriterWrapper
Anders Blomdell's avatar
Anders Blomdell committed
15

16
all: labcomm.jar labcomm2014.jar labcomm2006.jar
Anders Blomdell's avatar
Anders Blomdell committed
17
18

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

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

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

Anders Blomdell's avatar
Anders Blomdell committed
30
31
32
gen:
	mkdir gen

33
gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) $(MODULES:%=se/lth/control/labcomm2006/%.java) Makefile | gen
Anders Blomdell's avatar
Anders Blomdell committed
34
35
36
	javac -d gen $(filter %.java, $^)
	touch $@

37
38
39

.PHONY: clean

Anders Blomdell's avatar
Anders Blomdell committed
40
clean:
Tommy Olofsson's avatar
Tommy Olofsson committed
41
	rm -rf labcomm.jar labcomm2006.jar labcomm2014.jar gen