diff fteeprom/Makefile @ 16:1d76deae1e74

fteeprom-read: convert to new local libs
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 Sep 2023 08:56:57 +0000
parents b2c891299e83
children 43b8e88dae02
line wrap: on
line diff
--- a/fteeprom/Makefile	Thu Sep 07 08:11:12 2023 +0000
+++ b/fteeprom/Makefile	Thu Sep 07 08:56:57 2023 +0000
@@ -2,6 +2,7 @@
 CFLAGS=	-O2
 PROGS=	ftee-gen2232c ftee-gen2232h ftee-gen232r ftee-mkblank fteeprom-erase \
 	fteeprom-prog fteeprom-read
+LIBS=	../libftmini/libftmini.a ../libuwrap/libuwrap.a
 
 INSTALL_PREFIX=	/opt/freecalypso
 
@@ -27,8 +28,8 @@
 fteeprom-prog:	fteeprom-prog.c
 	${CC} ${CFLAGS} -o $@ $@.c -lftdi
 
-fteeprom-read:	fteeprom-read.c
-	${CC} ${CFLAGS} -o $@ $@.c -lftdi
+fteeprom-read:	fteeprom-read.o ${LIBS}
+	${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lusb
 
 install:
 	mkdir -p ${INSTBIN}