Makefile revision df8bdeb362277e8d95a74d6c097341fe97409948
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# CDDL HEADER START
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# The contents of this file are subject to the terms of the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Common Development and Distribution License (the "License").
df8bdeb362277e8d95a74d6c097341fe97409948johnz# You may not use this file except in compliance with the License.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
df8bdeb362277e8d95a74d6c097341fe97409948johnz# or http://www.opensolaris.org/os/licensing.
df8bdeb362277e8d95a74d6c097341fe97409948johnz# See the License for the specific language governing permissions
df8bdeb362277e8d95a74d6c097341fe97409948johnz# and limitations under the License.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# When distributing Covered Code, include this CDDL HEADER in each
df8bdeb362277e8d95a74d6c097341fe97409948johnz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
df8bdeb362277e8d95a74d6c097341fe97409948johnz# If applicable, add the following below this CDDL HEADER, with the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# fields enclosed by brackets "[]" replaced with your own identifying
df8bdeb362277e8d95a74d6c097341fe97409948johnz# information: Portions Copyright [yyyy] [name of copyright owner]
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# CDDL HEADER END
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Use is subject to license terms.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz#pragma ident "%Z%%M% %I% %E% SMI"
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzPROG = elfsign
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzOBJS = elfsign.o
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzSRCS = $(OBJS:.o=.c)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinclude $(SRC)/cmd/Makefile.cmd
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzCFLAGS += $(CCVERBOSE)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzLDLIBS += -lkmf -lelfsign -lcryptoutil
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz.KEEP_STATE:
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzall: $(PROG)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz$(PROG): $(OBJS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(POST_PROCESS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinstall: all $(ROOTPROG)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzclean:
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(RM) -f $(OBJS) $(PROG)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzlint: lint_SRCS
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinclude $(SRC)/cmd/Makefile.targ