diff misc/Makefile @ 26:4bd6275d7c79

fc-pcsc-atr trivial program added
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 15:53:12 +0000
parents simtool/Makefile@a6ca422323b9
children be9984600bf8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/Makefile	Fri Feb 12 15:53:12 2021 +0000
@@ -0,0 +1,17 @@
+CC=	gcc
+CFLAGS=	-O2 -I/usr/include/PCSC -I../libcommon
+PROGS=	fc-pcsc-atr
+LIBS=	../libcommon/libcommon.a
+INSTBIN=/opt/freecalypso/bin
+
+all:	${PROGS}
+
+fc-pcsc-atr:	fc-pcsc-atr.o ${LIBS}
+	${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lpcsclite
+
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
+clean:
+	rm -f ${PROGS} *.o