xref: /illumos-gate/usr/src/cmd/cmd-crypto/digest/Makefile (revision e5c93d6afd576eba5ed58a0f188357e3cc604b61)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5c197cb9dShylee# Common Development and Distribution License (the "License").
6c197cb9dShylee# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
2255553f71Sda73024# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gatePROG = digest
27*e5c93d6aSRichard Lowe
28*e5c93d6aSRichard LoweROOTLINK64= $(ROOTBIN64)/mac
2955553f71Sda73024ROOTLINK= $(ROOTBIN)/mac
30*e5c93d6aSRichard LoweROOTDIGLINK = $(PROG:%=$(ROOTBIN64)/%)
31*e5c93d6aSRichard Lowe
3255553f71Sda73024DCFILE= $(PROG).dc
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
35*e5c93d6aSRichard Loweinclude ../../Makefile.cmd.64
367c478bd9Sstevel@tonic-gate
37*e5c93d6aSRichard LoweCFLAGS += $(CCVERBOSE)
387c478bd9Sstevel@tonic-gate
39*e5c93d6aSRichard LoweCERRWARN += $(CNOWARN_UNINIT)
40*e5c93d6aSRichard Lowe
41*e5c93d6aSRichard LoweLDLIBS += -lkmf -lpkcs11 -lcryptoutil
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate.KEEP_STATE:
447c478bd9Sstevel@tonic-gate
45*e5c93d6aSRichard Loweall:	$(PROG)
467c478bd9Sstevel@tonic-gate
47*e5c93d6aSRichard Loweinstall: all $(ROOTBIN) $(ROOTLINK) $(ROOTLINK64) $(ROOTDIGLINK)
487c478bd9Sstevel@tonic-gate
49*e5c93d6aSRichard Lowe$(ROOTDIGLINK):
50*e5c93d6aSRichard Lowe	$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
51*e5c93d6aSRichard Lowe
52*e5c93d6aSRichard Lowe$(ROOTLINK): $(ROOTPROG)
53*e5c93d6aSRichard Lowe	$(RM) $@; $(LN) $(ROOTPROG) $@
54*e5c93d6aSRichard Lowe
55*e5c93d6aSRichard Lowe$(ROOTLINK64):
56*e5c93d6aSRichard Lowe	$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
57*e5c93d6aSRichard Lowe
58*e5c93d6aSRichard Loweclean:
59*e5c93d6aSRichard Lowe	$(RM) $(PROG)
607c478bd9Sstevel@tonic-gate
6155553f71Sda73024$(DCFILE):
6255553f71Sda73024	$(RM) messages.po
6355553f71Sda73024	$(XGETTEXT) $(XGETFLAGS) -t $(PROG).c
6455553f71Sda73024	$(SED) -e '/^domain/d' messages.po > $@
6555553f71Sda73024	$(RM) messages.po
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
68