Makefile 939 Bytes
Newer Older
1
2
3
4
5
6
KAZOO?=kazoo
# Here you can specify folders containing external code you want to
# compile and link for a specific partition.
# Use upper case for the partition name:
# export <PARTITION_NAME>_EXTERNAL_SOURCE_PATH=/absolute/path/1:/....

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
7
all:	sw
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

c:	work/glue_built
	rsync -c input/function1.c work/function1/C/src
	rsync -c input/function2.c work/function2/C/src
	$(MAKE) -C work

sw:	
	$(MAKE) NO_BITFILE=1 c

skeletons:
	$(MAKE) work/skeletons_built

work/skeletons_built:	InterfaceView.aadl DataView.aadl
	$(KAZOO) --gw -o work
	$(MAKE) -C work dataview
	touch $@

work/glue_built:	InterfaceView.aadl DeploymentView.aadl DataView.aadl
	$(KAZOO) -p --glue --gw -o work
	touch $@

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
29
30
31
DataView.aadl:	DataView.asn
	taste-update-data-view

32
33
34
35
36
37
38
39
clean:
	rm -rf work/build
	rm -f work/glue_built work/skeletons_built
	find work -type d -name "wrappers" -exec rm -rf {} +
	find work -type d -name "*_GUI" -exec rm -rf {} +

.PHONY: clean skeletons c