xref: /illumos-gate/usr/src/cmd/cmd-crypto/decrypt/Makefile (revision f4cf2aac1afc879479aff21c1fe3c1e3813ef0f8)
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#
22b54157c1Sda73024# 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 = decrypt
27e5c93d6aSRichard Lowe
28e5c93d6aSRichard LoweROOTLINK64= $(ROOTBIN64)/encrypt
29b54157c1Sda73024ROOTLINK= $(ROOTBIN)/encrypt
30e5c93d6aSRichard LoweROOTDECLINK = $(PROG:%=$(ROOTBIN64)/%)
31e5c93d6aSRichard Lowe
32b54157c1Sda73024DCFILE=$(PROG).dc
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
35e5c93d6aSRichard Loweinclude ../../Makefile.cmd.64
367c478bd9Sstevel@tonic-gate
37e5c93d6aSRichard LoweCFLAGS += $(CCVERBOSE)
387c478bd9Sstevel@tonic-gate
39e5c93d6aSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
40e5c93d6aSRichard LoweCERRWARN += $(CNOWARN_UNINIT)
41e5c93d6aSRichard Lowe
42e5c93d6aSRichard LoweLDLIBS += -lkmf -lpkcs11 -lcryptoutil
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate.KEEP_STATE:
457c478bd9Sstevel@tonic-gate
46e5c93d6aSRichard Loweall:    $(PROG)
477c478bd9Sstevel@tonic-gate
48*f4cf2aacSAndy Fiddamaninstall: all $(ROOTPROG) $(ROOTLINK) $(ROOTLINK64) $(ROOTDECLINK)
497c478bd9Sstevel@tonic-gate
50e5c93d6aSRichard Lowe$(ROOTDECLINK):
51e5c93d6aSRichard Lowe	$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
52e5c93d6aSRichard Lowe
53e5c93d6aSRichard Lowe$(ROOTLINK): $(ROOTPROG)
54e5c93d6aSRichard Lowe	$(RM) $@; $(LN) $(ROOTPROG) $@
55e5c93d6aSRichard Lowe
56e5c93d6aSRichard Lowe$(ROOTLINK64):
57e5c93d6aSRichard Lowe	$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
58e5c93d6aSRichard Lowe
59e5c93d6aSRichard Loweclean:
60e5c93d6aSRichard Lowe	$(RM) $(PROG)
617c478bd9Sstevel@tonic-gate
62b54157c1Sda73024$(DCFILE):
63b54157c1Sda73024	$(RM) messages.po
64b54157c1Sda73024	$(XGETTEXT) $(XGETFLAGS) -t $(PROG).c
65b54157c1Sda73024	$(SED) -e '/^domain/d' messages.po > $@
66b54157c1Sda73024	$(RM) messages.po
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
69