changeset 378:3164604a6c70

install compalstage-*.bin and loadagent.srec from target-utils
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 09 Jun 2014 06:10:01 +0000
parents d148403013c0
children 7b3fd0e2a352
files target-utils/Makefile target-utils/compalstage/Makefile target-utils/loadagent/Makefile
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/target-utils/Makefile	Mon Jun 09 05:08:11 2014 +0000
+++ b/target-utils/Makefile	Mon Jun 09 06:10:01 2014 +0000
@@ -13,6 +13,9 @@
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
 
+install: FRC
+	for i in ${FOR_LOADTOOLS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+
 clean: FRC
 	rm -f a.out core errs
 	for i in ${SUBDIR}; do \
--- a/target-utils/compalstage/Makefile	Mon Jun 09 05:08:11 2014 +0000
+++ b/target-utils/compalstage/Makefile	Mon Jun 09 06:10:01 2014 +0000
@@ -1,7 +1,10 @@
 CC=	arm-elf-gcc
 OBJCOPY=arm-elf-objcopy
 
-all:	compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin
+TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin
+INSTDIR=/usr/local/share/freecalypso
+
+all:	${TARGETS}
 
 .SUFFIXES: .o .bin
 
@@ -17,6 +20,9 @@
 compalstage-thumb.o:	compalstage.S
 	${CC} -DTHUMB_ENTRY -c -o $@ $<
 
+install:
+	install -c ${TARGETS} ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.bin
 
--- a/target-utils/loadagent/Makefile	Mon Jun 09 05:08:11 2014 +0000
+++ b/target-utils/loadagent/Makefile	Mon Jun 09 06:10:01 2014 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/usr/local/share/freecalypso
+
 PROG=	loadagent
 OBJS=	crt0.o cmdtab.o main.o mygetchar.o
 LIBS=	../libcommon/libcommon.a ../libload/libload.a ../libprintf/libprintf.a
@@ -25,6 +27,9 @@
 ${PROG}.srec:	${PROG}.elf
 	${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
 
+install:
+	install -c ${PROG}.srec ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.elf *.bin *.srec crt0.S