view misc/Makefile @ 119:0ac0aee0df11

fc-uicc-tool: remaining PIN commands from fc-simtool
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Feb 2021 23:42:18 +0000
parents be9984600bf8
children f064dbcc5f41
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I/usr/include/PCSC -I../libcommon
PROGS=	fc-pcsc-atr fc-pcsc-list
LIBS=	../libcommon/libcommon.a
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

fc-pcsc-atr:	fc-pcsc-atr.o ${LIBS}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lpcsclite

fc-pcsc-list:	fc-pcsc-list.o ${LIBS}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lpcsclite

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f ${PROGS} *.o