Makefile 752 Bytes
Newer Older
Anders Blomdell's avatar
Anders Blomdell committed
1
2
3
4
5
6
7
8
MODULES=Constant \
	Decoder \
	DecoderChannel \
	DecoderRegistry \
	Encoder \
	EncoderChannel \
	EncoderRegistry \
	Reader \
9
10
11
	RenamingDecoder \
	RenamingEncoder \
	RenamingRegistry \
Anders Blomdell's avatar
Anders Blomdell committed
12
13
14
	Sample \
	SampleDispatcher \
	SampleHandler \
Anders Blomdell's avatar
Anders Blomdell committed
15
	SampleType \
16
17
	WrappingDecoder \
	WrappingEncoder \
Anders Blomdell's avatar
Anders Blomdell committed
18
	Writer \
19
	WriterWrapper
Anders Blomdell's avatar
Anders Blomdell committed
20

21

Anders Blomdell's avatar
Anders Blomdell committed
22
.PHONY: all
Anders Blomdell's avatar
Anders Blomdell committed
23
all: labcomm2014.jar
24

25
labcomm2014.jar: gen/JAVAC
Anders Blomdell's avatar
Anders Blomdell committed
26
	echo $@
Anders Blomdell's avatar
Anders Blomdell committed
27
	cd gen ; jar cf ../$@ se/lth/control/labcomm2014/*.class
Anders Blomdell's avatar
Anders Blomdell committed
28
29
30
31

gen:
	mkdir gen

Anders Blomdell's avatar
Anders Blomdell committed
32
gen/JAVAC: $(MODULES:%=se/lth/control/labcomm2014/%.java) \
Anders Blomdell's avatar
Anders Blomdell committed
33
	   Makefile | gen
Anders Blomdell's avatar
Anders Blomdell committed
34
	javac -cp ../../compiler/labcomm2014_compiler.jar -d gen \
35
            $(filter %.java, $^)
Anders Blomdell's avatar
Anders Blomdell committed
36
37
	touch $@

38

Anders Blomdell's avatar
Anders Blomdell committed
39
40
41
.PHONY: test
test:

42
.PHONY: clean
Anders Blomdell's avatar
Anders Blomdell committed
43
clean:
Anders Blomdell's avatar
Anders Blomdell committed
44
45
46
	rm -rf gen

.PHONY: distclean
47
distclean: clean
Anders Blomdell's avatar
Anders Blomdell committed
48
	rm -rf labcomm2014.jar