Makefile 838 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 \
12
	Type \
Anders Blomdell's avatar
Anders Blomdell committed
13
	SampleType \
Anders Blomdell's avatar
Anders Blomdell committed
14
	Writer \
15
	WriterWrapper
Anders Blomdell's avatar
Anders Blomdell committed
16

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

labcomm.jar: gen/JAVAC
20 21 22
	echo $@
	cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class se/lth/control/labcomm2006/*.class

23
labcomm2014.jar: gen/JAVAC
Anders Blomdell's avatar
Anders Blomdell committed
24 25 26
	echo $@
	cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class

27 28 29 30
labcomm2006.jar: gen/JAVAC
	echo $@
	cd gen ; jar cf ../$@ se/lth/control/labcomm2006/*.class

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

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

38 39 40

.PHONY: clean

Anders Blomdell's avatar
Anders Blomdell committed
41
clean:
42
	rm -rf labcomm.jar labcomm2006.jar labcomm2014.jar gen 
43