FreeCalypso > hg > freecalypso-sw
diff gsm-fw/bsp/Makefile @ 155:3be2bc80ad38
gsm-fw/bsp/Makefile: abb+spi hooked into the build
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 17 Nov 2013 06:08:47 +0000 |
parents | afceeeb2cba1 |
children | dbfc9ff4e8d2 |
line wrap: on
line diff
--- a/gsm-fw/bsp/Makefile Sun Nov 17 05:53:10 2013 +0000 +++ b/gsm-fw/bsp/Makefile Sun Nov 17 06:08:47 2013 +0000 @@ -13,15 +13,23 @@ HDRS= armio.h clkm.h dma.h inth.h iq.h mem.h rhea_arm.h sim.h timer.h \ timer1.h timer2.h ulpd.h -all: ${IOBJS} ${XOBJS} xipcode.o +SUBDIR= abb+spi + +all: ${IOBJS} ${XOBJS} ${SUBDIR} xipcode.o ${AOBJS}: ${HDRS} ${XTOBJS}: %.o : %.c ${HDRS} ${CC} ${CFLAGS} -mthumb -c $< -xipcode.o: ${XOBJS} - ${LD} -r -o $@ ${XOBJS} +xipcode.o: ${XOBJS} ${SUBDIR} + ${LD} -r -o $@ ${XOBJS} abb+spi/xipcode.o + +${SUBDIR}: FRC + cd $@; ${MAKE} ${MFLAGS} clean: - rm -f *.[oa] *errs + rm -f *.[oa] *.out *errs + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done + +FRC: