Files
vsmartcard/ccid/Makefile
frankmorgner fdc400b911 - sm will yield error when the class byte indicates a sm apdu and pace will
simply transmit the apdu without encrypting/authenticating it.
- fixed building process when compiling without pace


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@81 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-04-27 20:00:42 +00:00

61 lines
1.1 KiB
Makefile

MAKEFLAGS += -rR --no-print-directory
# Directories
prefix =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
# Compiler
CC = gcc
CFLAGS = -Wall -g
OPENSSL_CFLAGS = `pkg-config --cflags --libs libssl`
OPENSC_CFLAGS = `pkg-config --cflags --libs libopensc`
PTHREAD_CFLAGS = -pthread
a_flags = $(CFLAGS) $(OPENSC_CFLAGS) $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS)
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
TARGETS = ccid
CCID_OBJ = ccid.o sm.o usbstring.o usb.o
ifdef PACE
CCID_OBJ += pace.o pace_lib.o
else
a_flags += -DNO_PACE
endif
# top-level rule
all: $(TARGETS)
ccid: $(CCID_OBJ)
$(CC) $^ -o $@ $(a_flags)
%.o: %.c %.h
$(CC) $< -o $@ -c $(a_flags)
%.o: %.c
$(CC) $< -o $@ -c $(a_flags)
install: $(TARGETS) installdirs
$(INSTALL_PROGRAM) ccid $(DESTDIR)$(bindir)
.PHONY: installdirs
installdirs:
$(INSTALL) -d $(DESTDIR)$(bindir)
.PHONY: install-strip
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
.PHONY: uninstall
uninstall:
rm -f $(DESTDIR)$(bindir)/ccid
.PHONY: clean
clean:
rm -f $(TARGETS) $(CCID_OBJ)