diff cp2102/Makefile @ 99:c59011177e2e

cp2102-update-eeprom program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 28 Sep 2023 05:25:39 +0000
parents 8d35346f1d46
children
line wrap: on
line diff
--- a/cp2102/Makefile	Thu Sep 28 04:45:13 2023 +0000
+++ b/cp2102/Makefile	Thu Sep 28 05:25:39 2023 +0000
@@ -2,7 +2,7 @@
 CFLAGS=	-O2
 PROGS=	cp2102-decode-baudtab cp2102-decode-ee-desc cp2102-patch-ee-image \
 	cp2102-read-baudtab cp2102-read-eeprom cp2102-read-partno \
-	cp2102-write-eeprom
+	cp2102-update-eeprom cp2102-write-eeprom
 NOINST=	file_rw_test
 LIBS=	../libuwrap/libuwrap.a
 
@@ -22,6 +22,8 @@
 			read_eeprom_main.o
 READ_PARTNO_OBJS=	find_dev.o read_partno.o
 RW_TEST_OBJS=		intel_hex_in.o intel_hex_out.o file_rw_test.o
+UPDATE_EEPROM_OBJS=	apply_eeprom_patch.o find_dev.o read_eeprom.o \
+			update_eeprom.o write_eeprom.o
 WRITE_EEPROM_OBJS=	find_dev.o intel_hex_in.o write_eeprom.o \
 			write_eeprom_main.o
 
@@ -45,6 +47,9 @@
 cp2102-read-partno:	${READ_PARTNO_OBJS} ${LIBS}
 	${CC} ${CFLAGS} -o $@ ${READ_PARTNO_OBJS} ${LIBS} -lusb
 
+cp2102-update-eeprom:	${UPDATE_EEPROM_OBJS} ${LIBS}
+	${CC} ${CFLAGS} -o $@ ${UPDATE_EEPROM_OBJS} ${LIBS} -lusb
+
 cp2102-write-eeprom:	${WRITE_EEPROM_OBJS} ${LIBS}
 	${CC} ${CFLAGS} -o $@ ${WRITE_EEPROM_OBJS} ${LIBS} -lusb