comparison uicc/Makefile @ 142:74c5dc7408e9

uicc/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Feb 2021 05:06:28 +0000
parents baf5bd698764
children 14dee03e9675
comparison
equal deleted inserted replaced
141:0b8a936f4542 142:74c5dc7408e9
2 CFLAGS= -O2 -I/usr/include/PCSC 2 CFLAGS= -O2 -I/usr/include/PCSC
3 PROG= fc-uicc-tool 3 PROG= fc-uicc-tool
4 OBJS= alpha_decode.o alpha_valid.o apdu.o atr.o cardconnect.o dispatch.o \ 4 OBJS= alpha_decode.o alpha_valid.o apdu.o atr.o cardconnect.o dispatch.o \
5 dumpdir.o exit.o globals.o hexdump.o hexstr.o hlread.o main.o names.o \ 5 dumpdir.o exit.o globals.o hexdump.o hexstr.o hlread.o main.o names.o \
6 pbcommon.o pbdump.o readcmd.o readops.o script.o select.o telsum.o 6 pbcommon.o pbdump.o readcmd.o readops.o script.o select.o telsum.o
7 INSTBIN=/opt/freecalypso/bin
7 8
8 all: ${PROG} 9 all: ${PROG}
9 10
10 ${PROG}: ${OBJS} 11 ${PROG}: ${OBJS}
11 ${CC} ${CFLAGS} -o $@ ${OBJS} -lpcsclite 12 ${CC} ${CFLAGS} -o $@ ${OBJS} -lpcsclite
12 13
14 install:
15 mkdir -p ${INSTBIN}
16 install -c ${PROG} ${INSTBIN}
17
13 clean: 18 clean:
14 rm -f ${PROG} *.o 19 rm -f ${PROG} *.o