view gsm-fw/L1/Makefile @ 794:b380a85d77d5

aci/cmh_mmq.c: RTC function interface reverted to the classic TCS211 way
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 16 Mar 2015 03:31:35 +0000
parents d6f0892cdf1e
children ab20a5e9dbf3
line wrap: on
line source

LD=	arm-elf-ld

SUBDIR=	audio_cfile cfile cust0 dsp stand tpudrv

sinclude ../include/config.mk

INT_PIECES=	cfile/iramcode.o cust0/iramcode.o tpudrv/iramcode.o
EXT_PIECES=	audio_cfile/xipcode.o cfile/xipcode.o cust0/xipcode.o \
		dsp/xipcode.o

ifeq (${CONFIG_L1_STANDALONE},1)
EXT_PIECES+=	stand/xipcode.o
endif

all:	iramcode.o xipcode.o

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS}

audio_cfile/xipcode.o:	audio_cfile
	@true

cfile/iramcode.o cfile/xipcode.o:	cfile
	@true

cust0/iramcode.o cust0/xipcode.o:	cust0
	@true

dsp/xipcode.o:	dsp
	@true

stand/xipcode.o:	stand
	@true

tpudrv/iramcode.o:	tpudrv
	@true

iramcode.o:	${INT_PIECES}
	${LD} -r -o $@ ${INT_PIECES}

xipcode.o:	${EXT_PIECES}
	${LD} -r -o $@ ${EXT_PIECES}

clean: FRC
	rm -f *.[oa] *.out *errs
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

FRC: