diff loadtools/Makefile @ 250:8c011177adb9

loadtools reworked to use factored-out libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 23:07:01 +0000
parents 064d4eedb3a6
children 90d7c360a614
line wrap: on
line diff
--- a/loadtools/Makefile	Thu Sep 21 21:49:07 2017 +0000
+++ b/loadtools/Makefile	Thu Sep 21 23:07:01 2017 +0000
@@ -7,43 +7,44 @@
 
 EXTRA_OBJ=	compalload.o
 
-COMPALRAM_OBJS=	compalload.o compalram.o defpath.o sercomm.o ttypassthru.o
+COMPALRAM_OBJS=	compalload.o compalram.o defpath.o ttypassthru.o
 
 IRAM_OBJS=	defexitstub.o defpath.o flashstubs.o hexdecode.o hwparam.o \
-		romload.o secondprog.o sercomm.o sertool.o srecreader.o \
-		ttypassthru.o ${EXTRA_OBJ}
+		romload.o secondprog.o sertool.o srecreader.o ttypassthru.o \
+		${EXTRA_OBJ}
 
 LOADTOOL_OBJS=	crc32tab.o defpath.o flashops.o flcmplboot.o flmain.o flmisc.o \
 		flprogbin.o flprogsrec.o flutil.o hexdecode.o hwparam.o \
 		labaud.o ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o \
-		ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \
-		srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
+		ltmisc.o ltpassthru.o ltscript.o romload.o srecreader.o \
+		tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
 
 XRAM_OBJS=	chainload.o clmain.o defexitstub.o defpath.o flashstubs.o \
 		hexdecode.o hwparam.o initscript.o labaud.o romload.o \
-		secondprog.o sercomm.o srecreader.o tpinterf.o ttypassthru.o \
-		${EXTRA_OBJ}
+		secondprog.o srecreader.o tpinterf.o ttypassthru.o ${EXTRA_OBJ}
 
 BUZPLAY_OBJS=	bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \
 		hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \
-		sercomm.o srecreader.o tpinterf.o ${EXTRA_OBJ}
+		srecreader.o tpinterf.o ${EXTRA_OBJ}
+
+LIBSERIAL=	../libserial/libserial.a
 
 all:	${PROGS}
 
-fc-compalram:	${COMPALRAM_OBJS}
-	${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS}
+fc-compalram:	${COMPALRAM_OBJS} ${LIBSERIAL}
+	${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS} ${LIBSERIAL}
 
-fc-iram:	${IRAM_OBJS}
-	${CC} ${CFLAGS} -o $@ ${IRAM_OBJS}
+fc-iram:	${IRAM_OBJS} ${LIBSERIAL}
+	${CC} ${CFLAGS} -o $@ ${IRAM_OBJS} ${LIBSERIAL}
 
-fc-loadtool:	${LOADTOOL_OBJS}
-	${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS}
+fc-loadtool:	${LOADTOOL_OBJS} ${LIBSERIAL}
+	${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS} ${LIBSERIAL}
 
-fc-xram:	${XRAM_OBJS}
-	${CC} ${CFLAGS} -o $@ ${XRAM_OBJS}
+fc-xram:	${XRAM_OBJS} ${LIBSERIAL}
+	${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} ${LIBSERIAL}
 
-fc-buzplay:	${BUZPLAY_OBJS}
-	${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS}
+fc-buzplay:	${BUZPLAY_OBJS} ${LIBSERIAL}
+	${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBSERIAL}
 
 install:
 	mkdir -p ${INSTBIN}