Makefile
1.23 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
default: obj
include ../tests/CommonProject/Makefile.common
#override
CC = hcarc
INCDIR = -I./ -I$(CO_SIM_LIB_ROOT)$(CO_SIM_COMMON_INCLUDE)
HARC_OPTS = -Xbarrel_shifter -Dbool=char -Dtrue=1 -Dfalse=0 -arc8 -Hsdata0
COMPILE = $(CC) $(INCDIR) $(HARC_OPTS) -c
OBJ_DIR = ../lib-hcarc
HEADER_INC = $(CO_SIM_LIB_ROOT)$(CO_SIM_COMMON_INCLUDE)/*.h
OBJS = $(OBJ_DIR)/arc_vector_table.o \
$(OBJ_DIR)/InterruptControllerInterface.o \
$(OBJ_DIR)/MessageIO.o \
$(OBJ_DIR)/SystemAccess.o \
$(OBJ_DIR)/VirtualComponentInterface.o
$(OBJ_DIR)/arc_vector_table.o : arc_vector_table.s
$(COMPILE) -xq arc_vector_table.s -o $(OBJ_DIR)/arc_vector_table.o
$(OBJ_DIR)/InterruptControllerInterface.o : InterruptControllerInterface.cpp $(HEADER_INC)
$(COMPILE) InterruptControllerInterface.cpp -o $(OBJ_DIR)/InterruptControllerInterface.o
$(OBJ_DIR)/MessageIO.o : MessageIO.cpp $(HEADER_INC)
$(COMPILE) MessageIO.cpp -o $(OBJ_DIR)/MessageIO.o
$(OBJ_DIR)/SystemAccess.o : SystemAccess.cpp $(HEADER_INC)
$(COMPILE) SystemAccess.cpp -o $(OBJ_DIR)/SystemAccess.o
$(OBJ_DIR)/VirtualComponentInterface.o : VirtualComponentInterface.cpp $(HEADER_INC)
$(COMPILE) VirtualComponentInterface.cpp -o $(OBJ_DIR)/VirtualComponentInterface.o
obj: $(OBJS)