# HG changeset patch # User Michael Spacefalcon # Date 1384668527 0 # Node ID 3be2bc80ad3818e431255a0b10c798f2fe8dcdbe # Parent 47754cdb624813efe8058173690a3c025e943df9 gsm-fw/bsp/Makefile: abb+spi hooked into the build diff -r 47754cdb6248 -r 3be2bc80ad38 gsm-fw/bsp/Makefile --- 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: