comparison 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
comparison
equal deleted inserted replaced
545:47ee7373010b 546:960116e41ebd
1 CC= arm-elf-gcc 1 CC= arm-elf-gcc
2 CFLAGS= -Os -fno-builtin 2 CFLAGS= -Os -fno-builtin
3 CPPFLAGS=-I../include 3 CPPFLAGS=-I../include
4 LD= arm-elf-ld 4 LD= arm-elf-ld
5 OBJCOPY=arm-elf-objcopy 5 OBJCOPY=arm-elf-objcopy
6
7 INSTDIR=/opt/freecalypso/target-bin
6 8
7 PROG= dspdump 9 PROG= dspdump
8 OBJS= crt0.o cmdtab.o dspops.o dumpagent.o dumpops.o main.o 10 OBJS= crt0.o cmdtab.o dspops.o dumpagent.o dumpops.o main.o
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ 11 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
10 ../libc/libc.a 12 ../libc/libc.a
21 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} 23 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
22 24
23 ${PROG}.srec: ${PROG}.elf 25 ${PROG}.srec: ${PROG}.elf
24 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 26 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
25 27
28 install:
29 mkdir -p ${INSTDIR}
30 install -c -m 644 ${PROG}.srec ${INSTDIR}
31
26 clean: 32 clean:
27 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S 33 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
28 34
29 FRC: 35 FRC: