# Prefix
PREFIX = /usr/local
prefix = $(PREFIX)
# Setup cross-compiler toolchain
## Set path to include the tools
PATH := ${PATH}:${NACL_SDK_ROOT}/toolchain/linux_pnacl/bin
export PATH
## Set variables needed by projects
HOST_CC := $(shell which "$${CC:-cc}")
cd "${workdir}" || exit 1
# Copy out PC/SC headers for later use
mkdir -p "${instdir}/include/PCSC" || exit 1
cp third_party/pcsc-lite/src-*/src/PCSC/*.h "${instdir}/include/PCSC" || exit 1
# Copy out JavaScript files for later use
mkdir "${instdir}/js" || exit 1# cp common-utils/*.js "${instdir}/js" || exit 1
# cp third_party/pcsc-lite/client-side/*.js "${instdir}/js" || exit 1
touch "${instdir}/libpcsc.js"
# Assemble all the files into a single tree
files=(
common/cpp/src/google_smart_card_common/formatting.h
common/cpp/src/google_smart_card_common/logging/function_call_tracer.cc
common/cpp/src/google_smart_card_common/logging/function_call_tracer.h
common/cpp/src/google_smart_card_common/logging/hex_dumping.cc