view target-utils/compalstage/Makefile @ 358:b39802cd9329

target-utils/Makefile: tf-breakin subdir added
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 15 May 2014 09:50:23 +0000
parents 48c08499cede
children 3164604a6c70
line wrap: on
line source

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

all:	compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin

.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 $@ $<

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

FRC: