Makefile 560 Bytes
Newer Older
1
SUBDIRS=compiler lib test examples
2
export LABCOMM_JAR=$(shell pwd)/compiler/labcomm_compiler.jar
3
4
export LABCOMM=java -jar $(LABCOMM_JAR) 

Anders Blomdell's avatar
Anders Blomdell committed
5
all: $(SUBDIRS:%=make-%)
6

Anders Blomdell's avatar
Anders Blomdell committed
7
8
.PHONY: make-%
make-%:
Anders Blomdell's avatar
Anders Blomdell committed
9
	LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* -e 
10
11

.PHONY: test
Anders Blomdell's avatar
Anders Blomdell committed
12
13
14
15
test: $(SUBDIRS:%=test-%)

.PHONY: test-%
test-%:
Anders Blomdell's avatar
Anders Blomdell committed
16
	LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* -e test
Anders Blomdell's avatar
Anders Blomdell committed
17
18
19
20
21
22
23

.PHONY: clean
clean: $(SUBDIRS:%=clean-%)

.PHONY: clean-%
clean-%:
	$(MAKE) -C $* -e clean
Anders Blomdell's avatar
Anders Blomdell committed
24
25
26
27
28
29
30

.PHONY: distclean
distclean: $(SUBDIRS:%=distclean-%)

.PHONY: distclean-%
distclean-%:
	$(MAKE) -C $* -e distclean