diff pcsc/Makefile @ 0:f4479a0d4cea

fc-pcsc-list ported over
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 00:45:15 +0000
parents
children f7a03e53bb2c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pcsc/Makefile	Sun Mar 14 00:45:15 2021 +0000
@@ -0,0 +1,21 @@
+CC=	gcc
+CFLAGS=	-O2 -I/usr/include/PCSC
+PROGS=	fc-pcsc-list
+
+INSTALL_PREFIX=	/opt/freecalypso
+
+INSTBIN=${INSTALL_PREFIX}/bin
+
+LIST_OBJS=	context.o rdlist.o
+
+all:	${PROGS}
+
+fc-pcsc-list:	${LIST_OBJS}
+	${CC} ${CFLAGS} -o $@ ${LIST_OBJS} -lpcsclite
+
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
+clean:
+	rm -f ${PROGS} *.o