comparison target-utils/c139explore/Makefile @ 42:750765d6caeb

target-utils/{c139,pir}explore/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 05:35:28 +0000
parents 280826b807e3
children 3431a069254f
comparison
equal deleted inserted replaced
41:2c9ea966edb9 42:750765d6caeb
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= c139explore 9 PROG= c139explore
8 OBJS= crt0.o backlight.o cmdtab.o dac.o lcd.o main.o mygetchar.o uartbase.o \ 10 OBJS= crt0.o backlight.o cmdtab.o dac.o lcd.o main.o mygetchar.o uartbase.o \
9 uwire.o 11 uwire.o
10 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a 12 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a
23 --start-group ${TC_LIBS} --end-group 25 --start-group ${TC_LIBS} --end-group
24 26
25 ${PROG}.bin: ${PROG}.elf 27 ${PROG}.bin: ${PROG}.elf
26 ${OBJCOPY} -O binary $< $@ 28 ${OBJCOPY} -O binary $< $@
27 29
30 install:
31 mkdir -p ${INSTDIR}
32 install -c -m 644 ${PROG}.bin ${INSTDIR}
33
28 clean: 34 clean:
29 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S 35 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
30 36
31 FRC: 37 FRC: