comparison target-utils/c139explore/Makefile @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 280826b807e3
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 CC= arm-elf-gcc
2 CFLAGS= -Os -fno-builtin
3 CPPFLAGS=-I../include
4 LD= arm-elf-ld
5 OBJCOPY=arm-elf-objcopy
6
7 PROG= c139explore
8 OBJS= crt0.o backlight.o cmdtab.o lcd.o main.o mygetchar.o uartbase.o uwire.o
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a
10 LDS= ../env/compalram.lds
11
12 TC_LIBS=`${CC} -print-file-name=libc.a` \
13 `${CC} -print-file-name=libgcc.a`
14
15 all: ${PROG}.bin
16
17 crt0.S: ../env/crt0.S
18 ln -s $< .
19
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
21 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \
22 --start-group ${TC_LIBS} --end-group
23
24 ${PROG}.bin: ${PROG}.elf
25 ${OBJCOPY} -O binary $< $@
26
27 clean:
28 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
29
30 FRC: