comparison pcsc/Makefile @ 3:45ea06eaa9fd

fc-pcsc-backend main program put together
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 02:21:49 +0000
parents f7a03e53bb2c
children
comparison
equal deleted inserted replaced
2:11f4f8a8fa33 3:45ea06eaa9fd
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 -I/usr/include/PCSC 2 CFLAGS= -O2 -I/usr/include/PCSC
3 PROGS= fc-pcsc-atr fc-pcsc-list 3 PROGS= fc-pcsc-atr fc-pcsc-backend fc-pcsc-list
4 4
5 INSTALL_PREFIX= /opt/freecalypso 5 INSTALL_PREFIX= /opt/freecalypso
6 6
7 INSTBIN=${INSTALL_PREFIX}/bin 7 INSTBIN=${INSTALL_PREFIX}/bin
8 8
9 ATR_OBJS= atrfunc.o atrmain.o connect.o context.o rdselect.o 9 ATR_OBJS= atrfunc.o atrmain.o connect.o context.o rdselect.o
10 MAIN_OBJS= atrfunc.o connect.o context.o main.o rdselect.o
10 LIST_OBJS= context.o rdlist.o 11 LIST_OBJS= context.o rdlist.o
11 12
12 all: ${PROGS} 13 all: ${PROGS}
13 14
14 fc-pcsc-atr: ${ATR_OBJS} 15 fc-pcsc-atr: ${ATR_OBJS}
15 ${CC} ${CFLAGS} -o $@ ${ATR_OBJS} -lpcsclite 16 ${CC} ${CFLAGS} -o $@ ${ATR_OBJS} -lpcsclite
17
18 fc-pcsc-backend: ${MAIN_OBJS}
19 ${CC} ${CFLAGS} -o $@ ${MAIN_OBJS} -lpcsclite
16 20
17 fc-pcsc-list: ${LIST_OBJS} 21 fc-pcsc-list: ${LIST_OBJS}
18 ${CC} ${CFLAGS} -o $@ ${LIST_OBJS} -lpcsclite 22 ${CC} ${CFLAGS} -o $@ ${LIST_OBJS} -lpcsclite
19 23
20 install: 24 install: