components/coolkey/test/Makefile
author Ronald Jordan <ron.jordan@oracle.com>
Mon, 01 Aug 2016 12:38:38 -0700
branchs11u3-sru
changeset 6535 8f23248b161c
permissions -rw-r--r--
22017764 Add Coolkey v1.1.0 to Userland consolidation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6535
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     1
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     3
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     7
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    12
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    18
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    20
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    21
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    22
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    23
#
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    24
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    26
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    27
CFLAGS = -m64 -I../coolkey-1.1.0/src/coolkey
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    28
LDFLAGS = -L/usr/lib/64 -R/usr/lib/64
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    29
LIBS = -lcoolkeypk11 -lckyapplet -lpcsclite -lz -lpthread
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    30
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    31
all:
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    32
	$(MAKE) build-test
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    33
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    34
build-test: test.c
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    35
	$(CC) $(CFLAGS) $(LDFLAGS) -o testcoolkey test.c $(LIBS)
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    36
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    37
clean:
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    38
	rm -f testcoolkey
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    39
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    40
.PHONY: all clean
8f23248b161c 22017764 Add Coolkey v1.1.0 to Userland consolidation
Ronald Jordan <ron.jordan@oracle.com>
parents:
diff changeset
    41