diff target-utils/c139explore/Makefile @ 42:750765d6caeb

target-utils/{c139,pir}explore/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 05:35:28 +0000
parents 280826b807e3
children 3431a069254f
line wrap: on
line diff
--- a/target-utils/c139explore/Makefile	Wed Oct 26 05:32:42 2016 +0000
+++ b/target-utils/c139explore/Makefile	Wed Oct 26 05:35:28 2016 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/opt/freecalypso/target-bin
+
 PROG=	c139explore
 OBJS=	crt0.o backlight.o cmdtab.o dac.o lcd.o main.o mygetchar.o uartbase.o \
 	uwire.o
@@ -25,6 +27,10 @@
 ${PROG}.bin:	${PROG}.elf
 	${OBJCOPY} -O binary $< $@
 
+install:
+	mkdir -p ${INSTDIR}
+	install -c -m 644 ${PROG}.bin ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.elf *.bin *.srec crt0.S