diff nuc-fw/sysglue/Makefile @ 130:8b0793c67f9f

nuc-fw: final preparations for the big transition
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 01 Nov 2013 08:03:23 +0000
parents 17b0511b243c
children
line wrap: on
line diff
--- a/nuc-fw/sysglue/Makefile	Fri Nov 01 06:13:58 2013 +0000
+++ b/nuc-fw/sysglue/Makefile	Fri Nov 01 08:03:23 2013 +0000
@@ -1,9 +1,14 @@
 CC=	arm-elf-gcc
+CFLAGS=	-Os -fno-builtin -mthumb-interwork -mthumb
 ASFLAGS=-mthumb-interwork
+LD=	arm-elf-ld
 
-OBJS=	irqfiq.o sysinit.o
+OBJS=	appinit.o irqfiq.o sysinit.o
 
-all:	${OBJS}
+all:	xipcode.o
+
+xipcode.o:	${OBJS}
+	${LD} -r -o $@ ${OBJS}
 
 clean:
 	rm -f *.[oa] *errs