xref: /titanic_50/usr/src/cmd/cmd-crypto/decrypt/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1b54157c1Sda73024#
2b54157c1Sda73024# CDDL HEADER START
3b54157c1Sda73024#
4b54157c1Sda73024# The contents of this file are subject to the terms of the
5b54157c1Sda73024# Common Development and Distribution License (the "License").
6b54157c1Sda73024# You may not use this file except in compliance with the License.
7b54157c1Sda73024#
8b54157c1Sda73024# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b54157c1Sda73024# or http://www.opensolaris.org/os/licensing.
10b54157c1Sda73024# See the License for the specific language governing permissions
11b54157c1Sda73024# and limitations under the License.
12b54157c1Sda73024#
13b54157c1Sda73024# When distributing Covered Code, include this CDDL HEADER in each
14b54157c1Sda73024# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b54157c1Sda73024# If applicable, add the following below this CDDL HEADER, with the
16b54157c1Sda73024# fields enclosed by brackets "[]" replaced with your own identifying
17b54157c1Sda73024# information: Portions Copyright [yyyy] [name of copyright owner]
18b54157c1Sda73024#
19b54157c1Sda73024# CDDL HEADER END
20b54157c1Sda73024#
21b54157c1Sda73024#
22b54157c1Sda73024# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23b54157c1Sda73024# Use is subject to license terms.
24b54157c1Sda73024#
25b54157c1Sda73024
26b54157c1Sda73024PROG = decrypt
27b54157c1Sda73024
28b54157c1Sda73024ROOTLINK32= $(ROOTBIN32)/encrypt
29b54157c1Sda73024ROOTLINK64= $(ROOTBIN64)/encrypt
30b54157c1Sda73024
31b54157c1Sda73024OBJS = decrypt.o
32b54157c1Sda73024
33b54157c1Sda73024SRCS = $(OBJS:%.o=../%.c)
34b54157c1Sda73024
35b54157c1Sda73024include ../../../Makefile.cmd
36b54157c1Sda73024
37b54157c1Sda73024CFLAGS += $(CCVERBOSE)
38b54157c1Sda73024CFLAGS64 += $(CCVERBOSE)
39b54157c1Sda73024CPPFLAGS += -D_FILE_OFFSET_BITS=64
40b54157c1Sda73024
41*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
42*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
43*7014882cSRichard Lowe
44b54157c1Sda73024LDLIBS += -lkmf -lpkcs11 -lcryptoutil
45b54157c1Sda73024
46b54157c1Sda73024.KEEP_STATE:
47b54157c1Sda73024
48b54157c1Sda73024all:    $(PROG)
49b54157c1Sda73024
50b54157c1Sda73024lint:   lint_SRCS
51b54157c1Sda73024
52b54157c1Sda73024include ../../../Makefile.targ
53b54157c1Sda73024
54b54157c1Sda73024%.o:	../%.c
55b54157c1Sda73024	$(COMPILE.c) $<
56b54157c1Sda73024
57b54157c1Sda73024$(PROG): $(OBJS)
58b54157c1Sda73024	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
59b54157c1Sda73024	$(POST_PROCESS)
60b54157c1Sda73024
61b54157c1Sda73024$(ROOTLINK32): $(ROOTPROG32)
62b54157c1Sda73024	$(RM) $@
63b54157c1Sda73024	$(LN) $(ROOTPROG32) $@
64b54157c1Sda73024
65b54157c1Sda73024$(ROOTLINK64): $(ROOTPROG64)
66b54157c1Sda73024	$(RM) $@
67b54157c1Sda73024	$(LN) $(ROOTPROG64) $@
68b54157c1Sda73024
69b54157c1Sda73024clean:
70b54157c1Sda73024	$(RM) $(PROG) $(OBJS)
71