comparison target-utils/pirexplore/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 1557e15a012f
children
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= pirexplore 7 PROG= pirexplore
8 OBJS= crt0.o cmdtab.o ffsparam.o flashid.o lcd.o main.o mygetchar.o rtc.o 8 OBJS= crt0.o cmdtab.o ffsparam.o flashid.o lcd.o main.o mygetchar.o rtc.o
9 LIBS= ../libcommon/libcommon.a ../libtiffs/libtiffs.a ../libprintf/libprintf.a 9 LIBS= ../libtiffs/libtiffs.a ../libcommon/libcommon.a \
10 ../libprintf/libprintf.a ../libbase/libbase.a
10 LDS= ../env/iram.lds 11 LDS= ../env/iram.lds
11 12
12 TC_LIBS=`${CC} -print-file-name=libc.a` \ 13 TC_LIBS=`${CC} -print-file-name=libc.a` \
13 `${CC} -print-file-name=libgcc.a` 14 `${CC} -print-file-name=libgcc.a`
14 15
17 crt0.S: ../env/crt0.S 18 crt0.S: ../env/crt0.S
18 ln -s $< . 19 ln -s $< .
19 20
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 21 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
21 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x87FFFC \ 22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x87FFFC \
22 -T ${LDS} -o $@ ${OBJS} \ 23 -T ${LDS} -o $@ ${OBJS} ${LIBS} \
23 --start-group ${LIBS} --end-group \
24 --start-group ${TC_LIBS} --end-group 24 --start-group ${TC_LIBS} --end-group
25 25
26 ${PROG}.srec: ${PROG}.elf 26 ${PROG}.srec: ${PROG}.elf
27 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 27 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
28 28