view misc/Makefile @ 40:4c240a37e7c4

fc-simtool smsp-erase-* command family implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 22:05:38 +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