diff target-utils/dspdump/Makefile @ 546:960116e41ebd

dspdump: make install added
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Oct 2019 21:32:14 +0000
parents b95b251b33eb
children
line wrap: on
line diff
--- a/target-utils/dspdump/Makefile	Mon Oct 28 21:23:24 2019 +0000
+++ b/target-utils/dspdump/Makefile	Mon Oct 28 21:32:14 2019 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/opt/freecalypso/target-bin
+
 PROG=	dspdump
 OBJS=	crt0.o cmdtab.o dspops.o dumpagent.o dumpops.o main.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