reference/Makefile

44 lines
882 B
Makefile
Raw Permalink Normal View History

2019-10-09 11:45:38 +00:00
ROOT=../../..
include $/makedefs
VPATH+=common
IPATH=.
IPATH+=inc
IPATH+=driverlib
IPATH+=common
all: ${OBJDIR} ${BINDIR}
all: ${BINDIR}/blinky.axf
clean:
rm -rf ${OBJDIR} ${wildcard *~}
rm -rf ${BINDIR} ${wildcard *~}
${OBJDIR}:
@mkdir -p ${OBJDIR}
${BINDIR}:
@mkdir -p ${BINDIR}
${BINDIR}/blinky.axf: ${OBJDIR}/main.o
${BINDIR}/blinky.axf: ${OBJDIR}/pinmux.o
${BINDIR}/blinky.axf: ${OBJDIR}/gpio_if.o
${BINDIR}/blinky.axf: ${OBJDIR}/gpio.o
${BINDIR}/blinky.axf: ${OBJDIR}/utils.o
${BINDIR}/blinky.axf: ${OBJDIR}/interrupt.o
${BINDIR}/blinky.axf: ${OBJDIR}/pin.o
${BINDIR}/blinky.axf: ${OBJDIR}/prcm.o
${BINDIR}/blinky.axf: ${OBJDIR}/cpu.o
${BINDIR}/blinky.axf: ${OBJDIR}/startup_${COMPILER}.o
SCATTERgcc_blinky=gnu.ld
ENTRY_blinky=ResetISR
ifneq (${MAKECMDGOALS},clean)
-include ${wildcard ${OBJDIR}/*.d} __dummy__
endif