view target-utils/compalstage/Makefile @ 926:3f178b3ac50a

gsm-fw: preparations for building with L1_DYN_DSP_DWNLD enabled
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 22 Oct 2015 18:41:05 +0000
parents 90af6744d256
children
line wrap: on
line source

CC=	arm-elf-gcc
OBJCOPY=arm-elf-objcopy

TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin
INSTDIR=/usr/local/share/freecalypso

all:	${TARGETS}

.SUFFIXES: .o .bin

.o.bin:
	${OBJCOPY} -O binary $< $@

compalstage-1003.o:	compalstage.S
	${CC} -DPAD_TO_1003 -c -o $@ $<

compalstage-plain.o:	compalstage.S
	${CC} -c -o $@ $<

compalstage-thumb.o:	compalstage.S
	${CC} -DTHUMB_ENTRY -c -o $@ $<

install:
	mkdir -p ${INSTDIR}
	install -c ${TARGETS} ${INSTDIR}

clean:
	rm -f *.o *errs *core *.bin

FRC: