diff cp2102/Makefile @ 50:a5c4a82d01ab

cp2102-read-partno program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 17:41:24 +0000
parents
children d4d3531d342a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cp2102/Makefile	Mon Sep 11 17:41:24 2023 +0000
@@ -0,0 +1,20 @@
+CC=	gcc
+CFLAGS=	-O2
+PROGS=	cp2102-read-partno
+LIBS=	../libuwrap/libuwrap.a
+
+INSTALL_PREFIX=	/opt/freecalypso
+
+INSTBIN=${INSTALL_PREFIX}/bin
+
+all:	${PROGS}
+
+cp2102-read-partno:	read_partno.o ${LIBS}
+	${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb
+
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
+clean:
+	rm -f ${PROGS} *.o *errs *.out