forked from microflo/microflo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.stellaris.app
31 lines (24 loc) · 989 Bytes
/
Makefile.stellaris.app
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
SUFFIX=-cm4f
VARIANT=cm4f
ENTRY_main=ResetISR
include driverlib/makedefs
CFLAGS+=-std=gnu99 # startup_gcc.c file relies on it
CFLAGS+=-DSTELLARIS # for MicroFlo platform recognition
CFLAGS+=-DPART_TM4C123GH6PM # for hardware pin mapping
all: ${COMPILER}${SUFFIX}
all: ${COMPILER}${SUFFIX}/main.axf
${COMPILER}-cm4f/main.a: ${COMPILER}-cm4f/startup_gcc.o ${COMPILER}-cm4f/main.o
${COMPILER}${SUFFIX}/main.axf: ${COMPILER}-cm4f/main.a driverlib/libdriverlib.a
${COMPILER}${SUFFIX}:
mkdir -p ${COMPILER}${SUFFIX}
${COMPILER}${SUFFIX}/%.o: %.cpp
@if [ 'x${VERBOSE}' = x ]; \
then \
echo " CXX ${<}"; \
else \
echo ${CXX} ${CFLAGS} -D${COMPILER} -o ${@} ${<}; \
fi
@${CC} ${CFLAGS} -D${COMPILER} -o ${@} ${<}
ifneq ($(findstring CYGWIN, ${os}), )
@sed -i -r 's/ ([A-Za-z]):/ \/cygdrive\/\1/g' ${@:.o=.d}
endif