diff target-utils/simtest/Makefile @ 459:5c1fb31751d7

target-utils/simtest/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 10 Feb 2019 17:34:55 +0000
parents 0a2e3fd156ed
children 58d3a0634272
line wrap: on
line diff
--- a/target-utils/simtest/Makefile	Sat Feb 09 17:21:45 2019 +0000
+++ b/target-utils/simtest/Makefile	Sun Feb 10 17:34:55 2019 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/opt/freecalypso/target-bin
+
 PROG=	simtest
 OBJS=	crt0.o cmdtab.o main.o poll.o reset.o setup.o volt.o
 LIBS=	../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
@@ -23,6 +25,10 @@
 ${PROG}.srec:	${PROG}.elf
 	${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
 
+install:
+	mkdir -p ${INSTDIR}
+	install -c -m 644 ${PROG}.srec ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.elf *.bin *.srec crt0.S