diff serial/Makefile @ 38:1d96f3b4f155

serial: started with fcsim-serial-atr
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Mar 2021 19:19:46 +0000
parents
children 8f505d413815
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/serial/Makefile	Sat Mar 20 19:19:46 2021 +0000
@@ -0,0 +1,21 @@
+CC=	gcc
+CFLAGS=	-O2
+PROGS=	fcsim-serial-atr
+
+INSTALL_PREFIX=	/opt/freecalypso
+
+INSTBIN=${INSTALL_PREFIX}/bin
+
+ATR_OBJS=	atrmain.o collect_atr.o invtable.o serport.o
+
+all:	${PROGS}
+
+fcsim-serial-atr:	${ATR_OBJS}
+	${CC} ${CFLAGS} -o $@ ${ATR_OBJS}
+
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
+clean:
+	rm -f ${PROGS} *.o