1*6281Sda73024# 2*6281Sda73024# CDDL HEADER START 3*6281Sda73024# 4*6281Sda73024# The contents of this file are subject to the terms of the 5*6281Sda73024# Common Development and Distribution License (the "License"). 6*6281Sda73024# You may not use this file except in compliance with the License. 7*6281Sda73024# 8*6281Sda73024# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*6281Sda73024# or http://www.opensolaris.org/os/licensing. 10*6281Sda73024# See the License for the specific language governing permissions 11*6281Sda73024# and limitations under the License. 12*6281Sda73024# 13*6281Sda73024# When distributing Covered Code, include this CDDL HEADER in each 14*6281Sda73024# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*6281Sda73024# If applicable, add the following below this CDDL HEADER, with the 16*6281Sda73024# fields enclosed by brackets "[]" replaced with your own identifying 17*6281Sda73024# information: Portions Copyright [yyyy] [name of copyright owner] 18*6281Sda73024# 19*6281Sda73024# CDDL HEADER END 20*6281Sda73024# 21*6281Sda73024# 22*6281Sda73024# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*6281Sda73024# Use is subject to license terms. 24*6281Sda73024# 25*6281Sda73024# ident "%Z%%M% %I% %E% SMI" 26*6281Sda73024# 27*6281Sda73024 28*6281Sda73024PROG = digest 29*6281Sda73024 30*6281Sda73024ROOTLINK32= $(ROOTBIN32)/mac 31*6281Sda73024ROOTLINK64= $(ROOTBIN64)/mac 32*6281Sda73024 33*6281Sda73024OBJS = digest.o 34*6281Sda73024 35*6281Sda73024SRCS = $(OBJS:%.o=../%.c) 36*6281Sda73024 37*6281Sda73024include ../../../Makefile.cmd 38*6281Sda73024 39*6281Sda73024CFLAGS += $(CCVERBOSE) 40*6281Sda73024CFLAGS64 += $(CCVERBOSE) 41*6281Sda73024CPPFLAGS +=-D_FILE_OFFSET_BITS=64 42*6281Sda73024 43*6281Sda73024LDLIBS += -lkmf -lpkcs11 -lcryptoutil 44*6281Sda73024 45*6281Sda73024.KEEP_STATE: 46*6281Sda73024 47*6281Sda73024all: $(PROG) 48*6281Sda73024 49*6281Sda73024lint: lint_SRCS 50*6281Sda73024 51*6281Sda73024include ../../../Makefile.targ 52*6281Sda73024 53*6281Sda73024%.o: ../%.c 54*6281Sda73024 $(COMPILE.c) $< 55*6281Sda73024 56*6281Sda73024$(PROG): $(OBJS) 57*6281Sda73024 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS) 58*6281Sda73024 $(POST_PROCESS) 59*6281Sda73024 60*6281Sda73024$(ROOTLINK32): $(ROOTPROG32) 61*6281Sda73024 $(RM) $@ 62*6281Sda73024 $(LN) $(ROOTPROG32) $@ 63*6281Sda73024 64*6281Sda73024$(ROOTLINK64): $(ROOTPROG64) 65*6281Sda73024 $(RM) $@ 66*6281Sda73024 $(LN) $(ROOTPROG64) $@ 67*6281Sda73024 68*6281Sda73024clean: 69*6281Sda73024 $(RM) $(PROG) $(OBJS) 70*6281Sda73024 71