Makefile revision 6277
26d8ffe715e74d1e67d268551449b780fec1b95fAutomatic Updater# CDDL HEADER START
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# The contents of this file are subject to the terms of the
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Common Development and Distribution License (the "License").
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# You may not use this file except in compliance with the License.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
26d8ffe715e74d1e67d268551449b780fec1b95fAutomatic Updater# See the License for the specific language governing permissions
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# and limitations under the License.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
26d8ffe715e74d1e67d268551449b780fec1b95fAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# CDDL HEADER END
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Requires physical card reader attached to USB with card inserted.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# SCM Microsystems, model SCR3310 is what was used in-house to test.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# To build the test:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# $ cd build/[64-bit directory]
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# $ gmake build-test
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# To run the test:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# $ cd build/[64-bit directory]
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# $ ./testcackey> testoutput.log
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# If the last line of output says:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Testing libcackey... DONE. Status = 0
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater# then you have a finished test and results.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Search for CK_FAIL or "failed" in testoutput.log to see the actual failures,
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# if no CK_FAIl or failed were reported, the test ran successfully.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCOMPONENT_PROJECT_URL= http://www.rkeene.org/projects/info/wiki/161
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterGIT_REPO= https://github.com/Conservatory/CACKey
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterGIT_HASH= sha256:72360f032b81923bb2cfcedea7e49ac50ac477e53872840e10ee08a2014ab737
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# does not use typical FOSS dir layout, source is at top level
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# requires PC/SC libraries and headers
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_ENV += CFLAGS="-I$(USRINCDIR)/PCSC"
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# options needed for configure, library location, PC/SC library and headers
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCONFIGURE_OPTIONS += --with-pcsc-headers=$(USRINCDIR)/PCSC
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCONFIGURE_OPTIONS += --enable-dod-certs-on-hw-slots
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# configure.ac related patch needs configure script re-creation
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# required packages