-
Notifications
You must be signed in to change notification settings - Fork 3
/
Config
92 lines (78 loc) · 1.84 KB
/
Config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# The PCSC-lite install prefix.
#
PCSCDIR=/usr
#
# installation directories:
# libjpcsc.so is stored in ${DESTDIR}/lib, jpcsc.jar is stored in
# ${DESTDIR}/share/java/jpcsc.jar, documentation, samples, and readme
# is stored in ${DESTDIR}/share/doc/jpcsc.
# By default, DESTDIR is set to PCSCDIR.
#
INSTALL_DIR=${PCSCDIR}
JNILIB_INSTALL_DIR=${DESTDIR}${INSTALL_DIR}/lib
JPCSCJAR_INSTALL_DIR=${DESTDIR}${INSTALL_DIR}/share/java
DOC_INSTALL_DIR=${DESTDIR}${INSTALL_DIR}/share/doc/jpcsc
#
# Paths to the Java tools. The defaults work assuming that $JAVA_HOME
# has been set correctly.
#
ifeq (${JAVA_HOME},)
$(error Please define JAVA_HOME to point to your JDK installation)
endif
JAVA = ${JAVA_HOME}/bin/java
JAVAC = ${JAVA_HOME}/bin/javac
JAVADOC = ${JAVA_HOME}/bin/javadoc
JAVAH = ${JAVA_HOME}/bin/javah
JAR = ${JAVA_HOME}/bin/jar
#
# Base directory of RPM package builds. May require root priviledges to build.
#
RPM_BUILD_DIR = /usr/src/redhat
#
# enable debug output with ENABLE_TRACING=yes
#
ENABLE_TRACING=no
#
# the package name to use.
#
PCSC_PACKAGE_NAME = com.linuxnet.jpcsc
#
# JPCSC Version
#
JPCSC_VERSION=0.8.0
#
# Determines the system to build for. Other unices should
# also work.
#
OSTYPE := $(shell echo `uname -s` | tr A-Z a-z)
ifneq ($(findstring linux,${OSTYPE}),)
ARCH = linux
else
ifneq ($(findstring darwin,${OSTYPE}),)
ARCH = darwin
else
ifneq ($(findstring win,${OSTYPE}),)
ARCH = win32
else
$(error Unsupported OSTYPE '${OSTYPE}')
endif
endif
endif
# targets
BUILDDIR = ${TOPDIR}/build
BINDIR = ${TOPDIR}/bin
ARCHDIR = ${BUILDDIR}/${ARCH}
CLASSDIR = ${BUILDDIR}/java
JARNAME = jpcsc.jar
JPCSCJAR = ${CLASSDIR}/${JARNAME}
# class path separator
ifeq (${ARCH}, win32)
CPSEP = ;
else
CPSEP = :
endif
# subdirectory of machine-specific jni includes
MACH_JNI_INCLDIR = ${ARCH}
# basic compiler flags
CCFLAGS = -D$(shell echo ${ARCH} | tr a-z A-Z)