xref: /titanic_50/usr/src/cmd/cmd-crypto/digest/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
155553f71Sda73024#
255553f71Sda73024# CDDL HEADER START
355553f71Sda73024#
455553f71Sda73024# The contents of this file are subject to the terms of the
555553f71Sda73024# Common Development and Distribution License (the "License").
655553f71Sda73024# You may not use this file except in compliance with the License.
755553f71Sda73024#
855553f71Sda73024# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
955553f71Sda73024# or http://www.opensolaris.org/os/licensing.
1055553f71Sda73024# See the License for the specific language governing permissions
1155553f71Sda73024# and limitations under the License.
1255553f71Sda73024#
1355553f71Sda73024# When distributing Covered Code, include this CDDL HEADER in each
1455553f71Sda73024# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1555553f71Sda73024# If applicable, add the following below this CDDL HEADER, with the
1655553f71Sda73024# fields enclosed by brackets "[]" replaced with your own identifying
1755553f71Sda73024# information: Portions Copyright [yyyy] [name of copyright owner]
1855553f71Sda73024#
1955553f71Sda73024# CDDL HEADER END
2055553f71Sda73024#
2155553f71Sda73024#
2255553f71Sda73024# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2355553f71Sda73024# Use is subject to license terms.
2455553f71Sda73024#
2555553f71Sda73024
2655553f71Sda73024PROG = digest
2755553f71Sda73024
2855553f71Sda73024ROOTLINK32= $(ROOTBIN32)/mac
2955553f71Sda73024ROOTLINK64= $(ROOTBIN64)/mac
3055553f71Sda73024
3155553f71Sda73024OBJS = digest.o
3255553f71Sda73024
3355553f71Sda73024SRCS = $(OBJS:%.o=../%.c)
3455553f71Sda73024
3555553f71Sda73024include ../../../Makefile.cmd
3655553f71Sda73024
3755553f71Sda73024CFLAGS += $(CCVERBOSE)
3855553f71Sda73024CFLAGS64 += $(CCVERBOSE)
3955553f71Sda73024CPPFLAGS +=-D_FILE_OFFSET_BITS=64
4055553f71Sda73024
41*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
42*7014882cSRichard Lowe
4355553f71Sda73024LDLIBS += -lkmf -lpkcs11 -lcryptoutil
4455553f71Sda73024
4555553f71Sda73024.KEEP_STATE:
4655553f71Sda73024
4755553f71Sda73024all:	$(PROG)
4855553f71Sda73024
4955553f71Sda73024lint: lint_SRCS
5055553f71Sda73024
5155553f71Sda73024include ../../../Makefile.targ
5255553f71Sda73024
5355553f71Sda73024%.o:	../%.c
5455553f71Sda73024	$(COMPILE.c) $<
5555553f71Sda73024
5655553f71Sda73024$(PROG): $(OBJS)
5755553f71Sda73024	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
5855553f71Sda73024	$(POST_PROCESS)
5955553f71Sda73024
6055553f71Sda73024$(ROOTLINK32): $(ROOTPROG32)
6155553f71Sda73024	$(RM) $@
6255553f71Sda73024	$(LN) $(ROOTPROG32) $@
6355553f71Sda73024
6455553f71Sda73024$(ROOTLINK64): $(ROOTPROG64)
6555553f71Sda73024	$(RM) $@
6655553f71Sda73024	$(LN) $(ROOTPROG64) $@
6755553f71Sda73024
6855553f71Sda73024clean:
6955553f71Sda73024	$(RM) $(PROG) $(OBJS)
7055553f71Sda73024
71