view gsm-fw/L1/cfile/Makefile @ 574:8fe8cae8cf92

L1: l1_trace.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 11 Aug 2014 03:17:19 +0000
parents 8d6062f4e7e4
children 1d7a12925b8e
line wrap: on
line source

CC=	arm-elf-gcc
CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \
	-I../tm_include -I../tm_cust0 -I../cust0 -I../tpudrv \
	-DMOVE_IN_INTERNAL_RAM
CFLAGS=	-O2 -fno-builtin -mthumb-interwork
ASFLAGS=-mthumb-interwork
LD=	arm-elf-ld
INTSED=	../intram.sed

IOBJS=	l1_api_hisr.o l1_cmplx_intram.o l1_ctl.o l1_drive.o l1_func.o \
	l1_mfmgr.o l1_small_asm.o l1_sync_intram.o
XOBJS=	l1_afunc.o l1_async.o l1_cmplx.o l1_init.o l1_pwmgr.o l1_small_defs.o \
	l1_sync.o l1_trace.o

all:	${IOBJS} ${XOBJS}

${XOBJS}:	%.o : %.c
	${CC} ${CFLAGS} ${CPPFLAGS} -mthumb -c $<

l1_cmplx_intram.c:	l1_cmplx.c ${INTSED}
	sed -n -f ${INTSED} l1_cmplx.c > $@

l1_sync_intram.c:	l1_sync.c ${INTSED}
	sed -n -f ${INTSED} l1_sync.c > $@

clean:
	rm -f *.[oa] l1_*_intram.c *.out *errs