comparison L1/cfile/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 b80f0c5016ee
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../dyn_dwl_include -I../tm_include -I../tm_cust0 -I../cust0 \
4 -I../tpudrv -DMOVE_IN_INTERNAL_RAM
5 CFLAGS= -O2 -fno-builtin -mthumb-interwork
6 ASFLAGS=-mthumb-interwork
7 LD= arm-elf-ld
8 INTSED= ../intram.sed
9
10 sinclude ../../include/config.mk
11
12 IOBJS= l1_api_hisr.o l1_cmplx_intram.o l1_ctl.o l1_drive.o l1_func.o \
13 l1_mfmgr.o l1_small_asm.o l1_sync_intram.o l1_isr_glue.o
14 XOBJS= l1_afunc.o l1_async.o l1_cmplx.o l1_init.o l1_pwmgr.o l1_small_defs.o \
15 l1_sync.o l1_trace.o dummy_tch_data.o
16
17 ifeq (${FEATURE_TCH_REROUTE},1)
18 XOBJS+= tch_feature.o
19 endif
20
21 all: iramcode.o xipcode.o
22
23 ${XOBJS}: %.o : %.c
24 ${CC} ${CFLAGS} ${CPPFLAGS} -mthumb -c $<
25
26 l1_cmplx_intram.c: l1_cmplx.c ${INTSED}
27 sed -n -f ${INTSED} l1_cmplx.c > $@
28
29 l1_sync_intram.c: l1_sync.c ${INTSED}
30 sed -n -f ${INTSED} l1_sync.c > $@
31
32 iramcode.o: ${IOBJS}
33 ${LD} -r -o $@ ${IOBJS}
34
35 xipcode.o: ${XOBJS}
36 ${LD} -r -o $@ ${XOBJS}
37
38 clean:
39 rm -f *.[oa] l1_*_intram.c *.out *errs