comparison 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
comparison
equal deleted inserted replaced
458:0a2e3fd156ed 459:5c1fb31751d7
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= simtest 9 PROG= simtest
8 OBJS= crt0.o cmdtab.o main.o poll.o reset.o setup.o volt.o 10 OBJS= crt0.o cmdtab.o main.o poll.o reset.o setup.o volt.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: