view simtool/Makefile @ 107:ba2c796259e9

simtool/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 25 Jan 2021 21:15:42 +0000
parents a60645b75a57
children 6f80cfdc7e05
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I/usr/include/PCSC
PROG=	fc-simtool
OBJS=	alpha_decode.o alpha_valid.o apdu.o atr.o cardconnect.o dispatch.o \
	globals.o hexdump.o hexread.o hlread.o main.o names.o pbcommon.o \
	pbdump.o readcmd.o readops.o saverestore.o select.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