Makefile 1.23 KB
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)