Makefile 736 Bytes
Newer Older
Anders Blomdell's avatar
Anders Blomdell committed
1
2
3
4
5
6
7
8
9
10
11
MODULES=LabCommDispatcher \
	LabCommDecoderRegistry \
	LabComm \
	LabCommSample \
	LabCommHandler \
	LabCommEncoderRegistry \
	LabCommDecoder \
	LabCommType \
	LabCommEncoderChannel \
	LabCommEncoder \
	LabCommDecoderChannel \
12
	LabCommWriter \
13
14
	LabCommReader \
	WriterWrapper
Anders Blomdell's avatar
Anders Blomdell committed
15

16
all: labcomm.jar labcomm2006.jar
Anders Blomdell's avatar
Anders Blomdell committed
17
18
19
20
21

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

22
23
24
25
labcomm2006.jar: gen/JAVAC
	echo $@
	cd gen ; jar cf ../$@ se/lth/control/labcomm2006/*.class

Anders Blomdell's avatar
Anders Blomdell committed
26
27
28
gen:
	mkdir gen

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

33
34
35

.PHONY: clean

Anders Blomdell's avatar
Anders Blomdell committed
36
clean:
37
38
	rm -rf labcomm.jar gen labcomm2006.jar