-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (38 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
APP?=ADASModel
ifeq ($(APP), SimpleConnection)
FUNC?=_sinkreaction_function_0
else ifeq ($(APP), ScheduleTest)
FUNC?=_sinkreaction_function_0
else ifeq ($(APP), ADASModel)
FUNC?=_adasprocessorreaction_function_0
endif
SRC_DIR=$(CURDIR)/src/static/patmos
DEST_DIR=$(CURDIR)/src-gen/static/$(APP)
INCD_DIR=$(CURDIR)/include
export LF_PROJECT_ROOT:=$(DEST_DIR)
export LF_MAIN_TARGET:=$(APP)
export LF_WCET_FUNC:=$(FUNC)
.PHONY: gen copy comp all clean wcet sim lin
all: del gen copy comp lin sim wcet
gen:
../../bin/lfc-dev src/static/$(APP).lf
copy:
cp $(SRC_DIR)/lf_patmos_support.h $(DEST_DIR)/include/core/platform/
cp $(SRC_DIR)/platform.h $(DEST_DIR)/include/core/
cp $(SRC_DIR)/lf_patmos_support.c $(DEST_DIR)/core/platform/
cp $(SRC_DIR)/lf_atomic_patmos.c $(DEST_DIR)/core/platform/
cp $(SRC_DIR)/lf_patmos_support.h $(INCD_DIR)/core/platform/
cp $(SRC_DIR)/platform.h $(INCD_DIR)/core
cp $(SRC_DIR)/Makefile $(DEST_DIR)
comp:
make -C $(DEST_DIR)
lin:
$(CURDIR)/bin/$(APP)
sim:
pasim $(DEST_DIR)/$(APP).elf
clean:
make clean -C $(DEST_DIR)
del:
rm -rf bin include src-gen
wcet:
make wcet -C $(DEST_DIR)