44 lines
882 B
Makefile
44 lines
882 B
Makefile
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
|