comparison L1/cust0/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 CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \
3 -I../tm_include -I../tm_cust0 -I../tpudrv
4 CFLAGS= -O2 -fno-builtin -mthumb-interwork
5 LD= arm-elf-ld
6
7 sinclude ../../include/config.mk
8
9 IOBJS= ind_os.o l1_cust_iram.o
10 XOBJS= l1_cust_xip.o l1_rf12.o
11
12 ifeq (${CONFIG_TARGET_PIRELLI},1)
13 XOBJS+= pirelli.o
14 endif
15
16 all: iramcode.o xipcode.o
17
18 l1_cust_iram.o: l1_cust.c
19 ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_INT_RAM -c -o $@ $<
20
21 l1_cust_xip.o: l1_cust.c
22 ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_FLASH -mthumb -c -o $@ $<
23
24 ifeq (${CONFIG_TARGET_PIRELLI},1)
25 pirelli.o: pirelli.c
26 ${CC} ${CFLAGS} ${CPPFLAGS} -mthumb -c $<
27 endif
28
29 iramcode.o: ${IOBJS}
30 ${LD} -r -o $@ ${IOBJS}
31
32 xipcode.o: ${XOBJS}
33 ${LD} -r -o $@ ${XOBJS}
34
35 clean:
36 rm -f *.[oa] *.out *errs