comparison gsm-fw/L1/cust0/Makefile @ 542:9dd6ca16f13d

gsm-fw/L1/cust0: split between IRAM and XIP code
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 03 Aug 2014 04:59:30 +0000
parents 1affe428bf72
children 2dccd2b4e5a2
comparison
equal deleted inserted replaced
541:9c91a1f670bd 542:9dd6ca16f13d
2 CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \ 2 CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \
3 -I../tm_include -I../tm_cust0 -I../tpudrv 3 -I../tm_include -I../tm_cust0 -I../tpudrv
4 CFLAGS= -O2 -fno-builtin -mthumb-interwork 4 CFLAGS= -O2 -fno-builtin -mthumb-interwork
5 LD= arm-elf-ld 5 LD= arm-elf-ld
6 6
7 IOBJS= ind_os.o l1_cust.o l1_rf12.o 7 IOBJS= ind_os.o l1_cust_iram.o
8 XOBJS= l1_cust_xip.o l1_rf12.o
8 9
9 all: ${IOBJS} 10 all: iramcode.o xipcode.o
11
12 l1_cust_iram.o: l1_cust.c
13 ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_INT_RAM -c -o $@ $<
14
15 l1_cust_xip.o: l1_cust.c
16 ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_FLASH -c -o $@ $<
17
18 iramcode.o: ${IOBJS}
19 ${LD} -r -o $@ ${IOBJS}
20
21 xipcode.o: ${XOBJS}
22 ${LD} -r -o $@ ${XOBJS}
10 23
11 clean: 24 clean:
12 rm -f *.[oa] *.out *errs 25 rm -f *.[oa] *.out *errs