diff target-utils/compalstage/Makefile @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 21eec7569eb8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/target-utils/compalstage/Makefile	Sat Jun 11 00:13:35 2016 +0000
@@ -0,0 +1,30 @@
+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: