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