1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
OS := $(shell uname -s)
ifeq ("$(OS)", "Darwin")
PCSC_CFLAGS := -framework PCSC
else
PCSC_CFLAGS ?= $(shell pkg-config libpcsclite --cflags)
PCSC_LDLIBS ?= $(shell pkg-config libpcsclite --libs)
endif
CFLAGS := -Wall -O2 -g -DVERSION=\"$(VERSION)\" $(PCSC_CFLAGS)
CPPFLAGS := $(CFLAGS)
LDLIBS := $(PCSC_LDLIBS)
PROGRAMS := SCardBeginTransaction \
SCardCancel \
BufferOverflow_SCardGetAttrib \
BufferOverflow_SCardTransmit \
BufferOverflow_SCardControl \
exec
all: $(PROGRAMS)
clean:
rm -f $(PROGRAMS)
|