FreeCalypso > hg > freecalypso-citrine
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/L1/cust0/Makefile Thu Jun 09 00:02:41 2016 +0000 @@ -0,0 +1,36 @@ +CC= arm-elf-gcc +CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \ + -I../tm_include -I../tm_cust0 -I../tpudrv +CFLAGS= -O2 -fno-builtin -mthumb-interwork +LD= arm-elf-ld + +sinclude ../../include/config.mk + +IOBJS= ind_os.o l1_cust_iram.o +XOBJS= l1_cust_xip.o l1_rf12.o + +ifeq (${CONFIG_TARGET_PIRELLI},1) +XOBJS+= pirelli.o +endif + +all: iramcode.o xipcode.o + +l1_cust_iram.o: l1_cust.c + ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_INT_RAM -c -o $@ $< + +l1_cust_xip.o: l1_cust.c + ${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_FLASH -mthumb -c -o $@ $< + +ifeq (${CONFIG_TARGET_PIRELLI},1) +pirelli.o: pirelli.c + ${CC} ${CFLAGS} ${CPPFLAGS} -mthumb -c $< +endif + +iramcode.o: ${IOBJS} + ${LD} -r -o $@ ${IOBJS} + +xipcode.o: ${XOBJS} + ${LD} -r -o $@ ${XOBJS} + +clean: + rm -f *.[oa] *.out *errs