diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/loadagent/Makefile	Mon Apr 29 05:21:05 2013 +0000
@@ -0,0 +1,17 @@
+CC=	arm-elf-gcc
+CFLAGS=	-Os -fno-builtin
+LD=	arm-elf-ld
+
+OBJS=	crt0.o main.o serio.o serwait.o
+
+TC_LIBS=`${CC} -print-file-name=libc.a` \
+	`${CC} -print-file-name=libgcc.a`
+
+all:	loadagent.elf
+
+loadagent.elf:	${OBJS} loadagent.lds
+	${LD} -N -T loadagent.lds -o $@ ${OBJS} \
+		--start-group ${TC_LIBS} --end-group
+
+clean:
+	rm -f *.o *errs *core *.elf *.bin *.srec