better build flags, out of the box lin,mac,win; refs #5

This commit is contained in:
Marc Wäckerlin
2010-08-26 12:24:12 +00:00
parent 8101619fdc
commit 0d6627bb78
4 changed files with 29 additions and 22 deletions

View File

@@ -10,7 +10,7 @@
// interface
#include <openssl.hxx>
#ifndef WIN32
#include <opensc/pkcs11.h>
#include <pkcs11/pkcs11.h>
#else
#include <cryptoki.h>
#endif

View File

@@ -6,7 +6,9 @@
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
include_HEADERS = pcsc.hxx cryptoki.hxx openssl.hxx cryptaux.hxx
pkcs11dir = ${includedir}/pkcs11
pkcs11_HEADERS = pkcs11/apiclient.h pkcs11/pkcs11.h pkcs11/pkcs11types.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpcscxx.pc
@@ -19,9 +21,15 @@ lib_LTLIBRARIES = libcryptoki++.la
libcryptoki___la_SOURCES = cryptoki.cxx cryptoki.hxx version.cxx
libcryptoki___la_LIBADD = -lssl
if MAC
AM_CPPFLAGS+=-I/Library/OpenSC/include
AM_LDFLAGS=-F/System/Library/Frameworks/PCSC.framework
endif
if !MINGW32
if !MAC
libcryptoki___la_LIBADD += -lpcsclite
endif
endif
clean-local:
-rm -r ${QMAKE_TARGET}.app