view simtool/Makefile @ 44:f4eb1e83b4b3

fc-simtool smsp-set command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 23:48:01 +0000
parents 2714d379edc2
children 32d6186668cf
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 smserase.o smsp_common.o smsp_dump.o smsp_erase.o \
	smsp_restore.o smsp_set.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