Debian Codegraph @

UnitaryTests/Makefile

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