FreeCalypso > hg > freecalypso-sw
comparison target-utils/c139-lldbg/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 | d7830aee0d35 |
children | 63ea60e7fbbc |
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= lldbg | 7 PROG= lldbg |
8 OBJS= entry.o cmdtab.o entryinfo.o main.o mygetchar.o | 8 OBJS= entry.o cmdtab.o entryinfo.o main.o mygetchar.o |
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a | 9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a |
10 LDS= lldbg.lds | 10 LDS= lldbg.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 |
15 all: ${PROG}.bin | 15 all: ${PROG}.bin |
16 | 16 |
17 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} | 17 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} |
18 ${LD} -N -T ${LDS} -o $@ ${OBJS} \ | 18 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \ |
19 --start-group ${LIBS} --end-group \ | |
20 --start-group ${TC_LIBS} --end-group | 19 --start-group ${TC_LIBS} --end-group |
21 | 20 |
22 ${PROG}.bin: ${PROG}.elf | 21 ${PROG}.bin: ${PROG}.elf |
23 ${OBJCOPY} -O binary $< $@ | 22 ${OBJCOPY} -O binary $< $@ |
24 | 23 |