comparison loadagent/Makefile @ 2:ddda170fa6f4

loadagent.elf compiled and linked, no printf yet
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Apr 2013 05:21:05 +0000
parents
children 4a7a325ed1b6
comparison
equal deleted inserted replaced
1:da98dc08f575 2:ddda170fa6f4
1 CC= arm-elf-gcc
2 CFLAGS= -Os -fno-builtin
3 LD= arm-elf-ld
4
5 OBJS= crt0.o main.o serio.o serwait.o
6
7 TC_LIBS=`${CC} -print-file-name=libc.a` \
8 `${CC} -print-file-name=libgcc.a`
9
10 all: loadagent.elf
11
12 loadagent.elf: ${OBJS} loadagent.lds
13 ${LD} -N -T loadagent.lds -o $@ ${OBJS} \
14 --start-group ${TC_LIBS} --end-group
15
16 clean:
17 rm -f *.o *errs *core *.elf *.bin *.srec