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