Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
415N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A#
98N/A
98N/APROG = pktool
98N/A
98N/AOBJS = pktool.o \
98N/A common.o \
98N/A setpin.o \
98N/A list.o \
98N/A delete.o \
98N/A import.o \
600N/A inittoken.o \
98N/A export.o \
98N/A tokens.o \
98N/A gencert.o \
493N/A gencsr.o \
98N/A download.o \
98N/A genkey.o \
600N/A signcsr.o \
98N/A genkeypair.o
98N/A
98N/Ainclude ../../Makefile.cmd
98N/A
98N/AKMFDIR = $(SRC)/lib/libkmf
98N/ASRCS = $(OBJS:%.o=%.c)
493N/APOFILES = $(OBJS:%.o=%.po)
493N/APOFILE = $(PROG)_msg.po
255N/AMSGFILES=$(SRCS:%.c=%.i)
600N/A
600N/ACPPFLAGS += -I. -I$(KMFDIR)/include -I/usr/include/libxml2 \
600N/A -I$(KMFDIR)/ber_der/inc
98N/A
536N/ACFLAGS += $(CCVERBOSE) -DDEBUG
536N/ACERRWARN += -_gcc=-Wno-uninitialized
536N/ACERRWARN += -_gcc=-Wno-unused-label
536N/A
536N/ALDLIBS += -lkmf -lpkcs11 -lcryptoutil
536N/A
98N/A.KEEP_STATE:
98N/A
all : $(PROG)
$(PROG) : $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(DYNFLAGS) $(LDLIBS)
$(POST_PROCESS)
$(POFILE) : $(POFILES)
$(RM) $@; $(CAT) $(POFILES) > $@
install : all $(ROOTPROG)
clean :
$(RM) $(OBJS)
lint : lint_SRCS
include ../../Makefile.targ