view simtool/Makefile @ 19:72a24b8538eb

meaty function of pb-dump moved back into simtool, out of libcommon Upon further reflection, I am not going to keep any of the pb-* commands in the new version of fc-uicc-tool: they are logically incorrect for UICC/USIM anyway, as they access phonebook files via old classic SIM paths, rather than their USIM paths. OTOH, I am going to implement new SMSP commands in fc-simtool, and I do not plan to replicate them in fc-uicc-tool either. Guts of fc-simtool pb-dump belong in simtool/pbdump.c, not in libcommon, just like the guts of the future smsp-dump command will belong in its own respective implementation module.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 03:33:26 +0000
parents a6ca422323b9
children f5a26c1d0b93
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I/usr/include/PCSC -I../libcommon
PROG=	fc-simtool
OBJS=	a38.o chv.o curfile.o dispatch.o dumpdir.o grcard1.o grcard2.o hlread.o\
	main.o pbcommon.o pbdump.o pberase.o pbupd_file.o pbupd_imm.o \
	pbupd_immhex.o readcmd.o readops.o restorebin.o savebin.o script.o \
	select.o sysmo.o telsum.o writecmd.o writeops.o
LIBS=	../libcommon/libcommon.a
INSTBIN=/opt/freecalypso/bin

all:	${PROG}

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

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

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