comparison target-utils/c139explore/Makefile @ 102:3431a069254f

target-utils: c139explore converted to our own libc
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 01 Nov 2016 00:20:14 +0000
parents 750765d6caeb
children 58d3a0634272
comparison
equal deleted inserted replaced
101:35e3963f03e9 102:3431a069254f
7 INSTDIR=/opt/freecalypso/target-bin 7 INSTDIR=/opt/freecalypso/target-bin
8 8
9 PROG= c139explore 9 PROG= c139explore
10 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 \
11 uwire.o 11 uwire.o
12 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a 12 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
13 ../libc/libc.a
14 LIBGCC= `${CC} -print-file-name=libgcc.a`
13 LDS= ../env/compalram.lds 15 LDS= ../env/compalram.lds
14
15 TC_LIBS=`${CC} -print-file-name=libc.a` \
16 `${CC} -print-file-name=libgcc.a`
17 16
18 all: ${PROG}.bin 17 all: ${PROG}.bin
19 18
20 crt0.S: ../env/crt0.S 19 crt0.S: ../env/crt0.S
21 ln -s $< . 20 ln -s $< .
22 21
23 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 22 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
24 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \ 23 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
25 --start-group ${TC_LIBS} --end-group
26 24
27 ${PROG}.bin: ${PROG}.elf 25 ${PROG}.bin: ${PROG}.elf
28 ${OBJCOPY} -O binary $< $@ 26 ${OBJCOPY} -O binary $< $@
29 27
30 install: 28 install: