Makefile
547 Bytes
#
PRDEPTH = ../../..
include $(PRDEPTH)/PRdefs
IOSIMLIB = ../libiosim.a
TARGETS = dp_test
CFILES = dp_test.c
#
# C Flags
#
LCINCS = -I. -I$(ROOT)/usr/include -I.. -D_LANGUAGE_C
# possible -D defines: DEBUG, CHATTY
LCOPTS = -g -DDEBUG -DBCP_IPC -Wall
LCFLAGS = $(LCOPTS) $(LCINCS)
#
# Linker Flags
#
LLDLIBS = $(IOSIMLIB)
default: $(TARGETS)
include $(COMMONRULES)
dp_test: main.o $(OBJECTS) $(IOSIMLIB)
$(HOST_CC) -o $@ $^ $(LLDLIBS)
xbus: xbus_dma.s
rspasm -I$(ROOT)/usr/include -o xbus xbus_dma.s
.c.o:
$(HOST_CC) $(LCFLAGS) -c $<