ccid-emulator: Build libopensc from source code

There is no longer an external (or stable) interface for libopensc.
Linking this program with an existing version of libopensc that is
pre-installed in the system library paths is not practical.

However, a specific snapshot of the OpenSC source code is embedded
here as a Git submodule (and included in the source distributions).
Build libopensc from this and statically link it into this program.
(Options such as '--enable-openpace' that are passed to ./configure
will be forwarded to control the build configuration of libopensc.)

Remove code that existed for compatibility when dynamically linking
with older versions of libopensc.
This commit is contained in:
David Ward
2020-04-11 10:09:27 -04:00
parent c18df66d4c
commit bc8b237c5a
16 changed files with 40 additions and 456 deletions

View File

@@ -1,5 +1,28 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc
SUBDIRS = . src doc
DIST_SUBDIRS = $(SUBDIRS) src/OpenSC
EXTRA_DIST = docs patches
all-local:
cd src/OpenSC/src/common && $(MAKE) $(AM_MAKEFLAGS) all
cd src/OpenSC/src/scconf && $(MAKE) $(AM_MAKEFLAGS) all
cd src/OpenSC/src/pkcs15init && $(MAKE) $(AM_MAKEFLAGS) all
cd src/OpenSC/src/sm && $(MAKE) $(AM_MAKEFLAGS) all
cd src/OpenSC/src/libopensc && $(MAKE) $(AM_MAKEFLAGS) all
check-local:
cd src/OpenSC/src/common && $(MAKE) $(AM_MAKEFLAGS) check
cd src/OpenSC/src/scconf && $(MAKE) $(AM_MAKEFLAGS) check
cd src/OpenSC/src/pkcs15init && $(MAKE) $(AM_MAKEFLAGS) check
cd src/OpenSC/src/sm && $(MAKE) $(AM_MAKEFLAGS) check
cd src/OpenSC/src/libopensc && $(MAKE) $(AM_MAKEFLAGS) check
clean-local:
cd src/OpenSC/src/common && $(MAKE) $(AM_MAKEFLAGS) clean
cd src/OpenSC/src/scconf && $(MAKE) $(AM_MAKEFLAGS) clean
cd src/OpenSC/src/pkcs15init && $(MAKE) $(AM_MAKEFLAGS) clean
cd src/OpenSC/src/sm && $(MAKE) $(AM_MAKEFLAGS) clean
cd src/OpenSC/src/libopensc && $(MAKE) $(AM_MAKEFLAGS) clean