comparison bsp/Makefile @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 CC= arm-elf-gcc
2 CFLAGS= -O2 -fno-builtin -mthumb-interwork
3 ASFLAGS=-mthumb-interwork
4 LD= arm-elf-ld
5
6 sinclude ../include/config.mk
7
8 IOBJS= flashchipinit.o irq_twiddle.o niq32.o
9 XTOBJS= armio.o clkm.o init_target.o inth.o niq.o timer.o timer1.o timer2.o
10
11 ifeq (${CONFIG_INCLUDE_SIM},1)
12 XTOBJS+=sim.o
13 IOBJS+= sim32.o
14 endif
15
16 XOBJS= ${XTOBJS} oldint.o
17 AOBJS= ${IOBJS} oldint.o
18
19 HDRS= armio.h clkm.h dma.h inth.h iq.h mem.h rhea_arm.h sim.h timer.h \
20 timer1.h timer2.h ulpd.h
21
22 SUBDIR= abb+spi rtc
23 SUBDIR_XIPCODE= abb+spi/xipcode.o rtc/xipcode.o
24
25 all: ${IOBJS} ${XOBJS} ${SUBDIR} iramcode.o xipcode.o
26
27 ${AOBJS}: ${HDRS}
28
29 ${XTOBJS}: %.o : %.c ${HDRS}
30 ${CC} ${CFLAGS} -mthumb -c $<
31
32 iramcode.o: ${IOBJS}
33 ${LD} -r -o $@ ${IOBJS}
34
35 xipcode.o: ${XOBJS} ${SUBDIR}
36 ${LD} -r -o $@ ${XOBJS} ${SUBDIR_XIPCODE}
37
38 ${SUBDIR}: FRC
39 cd $@; ${MAKE} ${MFLAGS}
40
41 clean:
42 rm -f *.[oa] *.out *errs
43 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
44
45 FRC: