view misc/Makefile @ 180:ba8c35ecf796

fc-uicc-tool readef output redir: make consistent with fc-simtool
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Mar 2021 04:40:43 +0000
parents e6263e1b16f8
children
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