view target-utils/compalstage/Makefile @ 360:f9d78057d766

tfc139 hack works!
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 15 May 2014 11:09:45 +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: