comparison target-utils/calversion/Makefile @ 444:e75d866e3826

target-utils/calversion/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 29 Dec 2018 05:40:06 +0000
parents 1dcc9e4b71fd
children 58d3a0634272
comparison
equal deleted inserted replaced
443:715c55ba511d 444:e75d866e3826
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= calversion 9 PROG= calversion
8 OBJS= crt0.o cmdtab.o dsp_bringup.o main.o mygetchar.o 10 OBJS= crt0.o cmdtab.o dsp_bringup.o main.o mygetchar.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: