diff loadtools/Makefile @ 84:ccc5161848c7

loadtools: support building for GTA0x AP
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 20 Aug 2013 04:51:15 +0000
parents e2698daf40d1
children 57b8dbb029c2
line wrap: on
line diff
--- a/loadtools/Makefile	Mon Aug 19 05:16:34 2013 +0000
+++ b/loadtools/Makefile	Tue Aug 20 04:51:15 2013 +0000
@@ -5,29 +5,30 @@
 SCRIPTS=scripts/pirelli.config scripts/pirelli.init
 INSTBIN=/usr/local/bin
 INSTSCR=/usr/local/share/freecalypso
+EXTRA_OBJ=
 
 IRAM_OBJS=	defpath.o hexdecode.o hwparam.o hwparamstubs.o romload.o \
-		sercomm.o sertool.o srecreader.o ttypassthru.o
+		sercomm.o sertool.o srecreader.o ttypassthru.o ${EXTRA_OBJ}
 
 LOADTOOL_OBJS=	crc32tab.o defpath.o flerase.o flprogbin.o flutil.o hexdecode.o\
 		hwparam.o labaud.o ltdispatch.o ltdump.o ltexit.o ltflash.o \
 		ltmain.o ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \
-		srecreader.o tpinterf.o tpinterf2.o tpinterf3.o
+		srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
 
 XRAM_OBJS=	chainload.o clmain.o defpath.o hexdecode.o hwparam.o \
 		hwparamstubs.o initscript.o labaud.o romload.o sercomm.o \
-		srecreader.o tpinterf.o ttypassthru.o
+		srecreader.o tpinterf.o ttypassthru.o ${EXTRA_OBJ}
 
 all:	${PROGS}
 
 fc-iram:	${IRAM_OBJS}
-	${CC} -o $@ ${IRAM_OBJS}
+	${CC} ${CFLAGS} -o $@ ${IRAM_OBJS}
 
 fc-loadtool:	${LOADTOOL_OBJS}
-	${CC} -o $@ ${LOADTOOL_OBJS}
+	${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS}
 
 fc-xram:	${XRAM_OBJS}
-	${CC} -o $@ ${XRAM_OBJS}
+	${CC} ${CFLAGS} -o $@ ${XRAM_OBJS}
 
 # The loadagent.srec image needs to be installed in the "system" directory
 # where fc-loadtool and fc-xram will find it.  However, we have a dilemma: