view pcsc/Makefile @ 99:97ba63d9361a

scripts/fcsim1-sst: turn off STK & OTA services In the initial unprogrammed state of the cards from Grcard, SST has services 25 through 29 set to allocated and activated. However, these cards appear to not actually support OTA, ENVELOPE commands do nothing (just return SW 9000), and they were never observed issuing any proactive SIM commands, even after a feature-generous TERMINAL PROFILE. Therefore, let's list these STK & OTA services as allocated, but not activated in our FCSIM1 SST.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 05 May 2021 04:26:07 +0000
parents 45ea06eaa9fd
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I/usr/include/PCSC
PROGS=	fc-pcsc-atr fc-pcsc-backend fc-pcsc-list

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

ATR_OBJS=	atrfunc.o atrmain.o connect.o context.o rdselect.o
MAIN_OBJS=	atrfunc.o connect.o context.o main.o rdselect.o
LIST_OBJS=	context.o rdlist.o

all:	${PROGS}

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

fc-pcsc-backend:	${MAIN_OBJS}
	${CC} ${CFLAGS} -o $@ ${MAIN_OBJS} -lpcsclite

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

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

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