view simtool/Makefile @ 150:54e33e9238b6

fc-simtool: harmonize hex string code with fc-uicc-tool
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Feb 2021 00:06:50 +0000
parents 1232dea1d66a
children ed34c8b7e2c9
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I/usr/include/PCSC
PROG=	fc-simtool
OBJS=	a38.o alpha_decode.o alpha_valid.o apdu.o atr.o cardconnect.o chv.o \
	dispatch.o dumpdir.o exit.o globals.o grcard1.o hexdump.o hexread.o \
	hexstr.o hlread.o main.o names.o pbcommon.o pbdump.o pberase.o \
	pbupdate.o readcmd.o readops.o saverestore.o script.o select.o sysmo.o \
	telsum.o writecmd.o writeops.o
INSTBIN=/opt/freecalypso/bin

all:	${PROG}

${PROG}:	${OBJS}
	${CC} ${CFLAGS} -o $@ ${OBJS} -lpcsclite

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

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