comparison 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
comparison
equal deleted inserted replaced
154:47754cdb6248 155:3be2bc80ad38
11 AOBJS= ${IOBJS} oldint.o 11 AOBJS= ${IOBJS} oldint.o
12 12
13 HDRS= armio.h clkm.h dma.h inth.h iq.h mem.h rhea_arm.h sim.h timer.h \ 13 HDRS= armio.h clkm.h dma.h inth.h iq.h mem.h rhea_arm.h sim.h timer.h \
14 timer1.h timer2.h ulpd.h 14 timer1.h timer2.h ulpd.h
15 15
16 all: ${IOBJS} ${XOBJS} xipcode.o 16 SUBDIR= abb+spi
17
18 all: ${IOBJS} ${XOBJS} ${SUBDIR} xipcode.o
17 19
18 ${AOBJS}: ${HDRS} 20 ${AOBJS}: ${HDRS}
19 21
20 ${XTOBJS}: %.o : %.c ${HDRS} 22 ${XTOBJS}: %.o : %.c ${HDRS}
21 ${CC} ${CFLAGS} -mthumb -c $< 23 ${CC} ${CFLAGS} -mthumb -c $<
22 24
23 xipcode.o: ${XOBJS} 25 xipcode.o: ${XOBJS} ${SUBDIR}
24 ${LD} -r -o $@ ${XOBJS} 26 ${LD} -r -o $@ ${XOBJS} abb+spi/xipcode.o
27
28 ${SUBDIR}: FRC
29 cd $@; ${MAKE} ${MFLAGS}
25 30
26 clean: 31 clean:
27 rm -f *.[oa] *errs 32 rm -f *.[oa] *.out *errs
33 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
34
35 FRC: