view target-utils/compalstage/Makefile @ 367:c72feb362ef1

os_evt.c: got some bogus-looking code, decompiled as-is
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 29 May 2014 05:12:59 +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: