# HG changeset patch
# User Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
# Date 1413075753 0
# Node ID 40a721fd98542553915105dfe58ee0dd77c4ca2f
# Parent  bccd56f16a710a02cf5ef0e0a1deed4c55e6e7c7
gsm-fw/g23m-gsm/Makefile: link xipcode.o for all of g23m-gsm

diff -r bccd56f16a71 -r 40a721fd9854 gsm-fw/g23m-gsm/Makefile
--- a/gsm-fw/g23m-gsm/Makefile	Sun Oct 12 00:55:20 2014 +0000
+++ b/gsm-fw/g23m-gsm/Makefile	Sun Oct 12 01:02:33 2014 +0000
@@ -1,10 +1,46 @@
+LD=	arm-elf-ld
+
 SUBDIR=	alr cc dl l1 mm rr sim sms ss
 
-all:	${SUBDIR}
+XIP_OBJS=	alr/xipcode.o cc/xipcode.o dl/xipcode.o l1/l1_pei.o \
+		mm/xipcode.o rr/xipcode.o sim/xipcode.o sms/xipcode.o \
+		ss/xipcode.o
+
+all:	xipcode.o
 
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
 
+alr/xipcode.o:	alr
+	@true
+
+cc/xipcode.o:	cc
+	@true
+
+dl/xipcode.o:	dl
+	@true
+
+l1/l1_pei.o:	l1
+	@true
+
+mm/xipcode.o:	mm
+	@true
+
+rr/xipcode.o:	rr
+	@true
+
+sim/xipcode.o:	sim
+	@true
+
+sms/xipcode.o:	sms
+	@true
+
+ss/xipcode.o:	ss
+	@true
+
+xipcode.o:	${XIP_OBJS}
+	${LD} -r -o $@ ${XIP_OBJS}
+
 clean: FRC
 	rm -f *.[oa] *.out *errs
 	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done