comparison target-utils/c139explore/Makefile @ 991:5cff3579814c

target-utils: libbase factored out of libcommon The library dependency order is now strictly unidirectional
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 30 Dec 2015 20:48:12 +0000
parents cd34e0d534b9
children d92e4aadeeb3
comparison
equal deleted inserted replaced
990:2a867e5768e9 991:5cff3579814c
4 LD= arm-elf-ld 4 LD= arm-elf-ld
5 OBJCOPY=arm-elf-objcopy 5 OBJCOPY=arm-elf-objcopy
6 6
7 PROG= c139explore 7 PROG= c139explore
8 OBJS= crt0.o backlight.o cmdtab.o lcd.o main.o mygetchar.o uwire.o 8 OBJS= crt0.o backlight.o cmdtab.o lcd.o main.o mygetchar.o uwire.o
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a 9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a
10 LDS= ../env/compalram.lds 10 LDS= ../env/compalram.lds
11 11
12 TC_LIBS=`${CC} -print-file-name=libc.a` \ 12 TC_LIBS=`${CC} -print-file-name=libc.a` \
13 `${CC} -print-file-name=libgcc.a` 13 `${CC} -print-file-name=libgcc.a`
14 14
16 16
17 crt0.S: ../env/crt0.S 17 crt0.S: ../env/crt0.S
18 ln -s $< . 18 ln -s $< .
19 19
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
21 ${LD} -N -T ${LDS} -o $@ ${OBJS} \ 21 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \
22 --start-group ${LIBS} --end-group \
23 --start-group ${TC_LIBS} --end-group 22 --start-group ${TC_LIBS} --end-group
24 23
25 ${PROG}.bin: ${PROG}.elf 24 ${PROG}.bin: ${PROG}.elf
26 ${OBJCOPY} -O binary $< $@ 25 ${OBJCOPY} -O binary $< $@
27 26