xref: /titanic_50/usr/src/cmd/cmd-crypto/elfsign/Makefile (revision df8bdeb362277e8d95a74d6c097341fe97409948)
1*df8bdeb3Sjohnz#
2*df8bdeb3Sjohnz# CDDL HEADER START
3*df8bdeb3Sjohnz#
4*df8bdeb3Sjohnz# The contents of this file are subject to the terms of the
5*df8bdeb3Sjohnz# Common Development and Distribution License (the "License").
6*df8bdeb3Sjohnz# You may not use this file except in compliance with the License.
7*df8bdeb3Sjohnz#
8*df8bdeb3Sjohnz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*df8bdeb3Sjohnz# or http://www.opensolaris.org/os/licensing.
10*df8bdeb3Sjohnz# See the License for the specific language governing permissions
11*df8bdeb3Sjohnz# and limitations under the License.
12*df8bdeb3Sjohnz#
13*df8bdeb3Sjohnz# When distributing Covered Code, include this CDDL HEADER in each
14*df8bdeb3Sjohnz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*df8bdeb3Sjohnz# If applicable, add the following below this CDDL HEADER, with the
16*df8bdeb3Sjohnz# fields enclosed by brackets "[]" replaced with your own identifying
17*df8bdeb3Sjohnz# information: Portions Copyright [yyyy] [name of copyright owner]
18*df8bdeb3Sjohnz#
19*df8bdeb3Sjohnz# CDDL HEADER END
20*df8bdeb3Sjohnz#
21*df8bdeb3Sjohnz#
22*df8bdeb3Sjohnz# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*df8bdeb3Sjohnz# Use is subject to license terms.
24*df8bdeb3Sjohnz#
25*df8bdeb3Sjohnz#pragma ident	"%Z%%M%	%I%	%E% SMI"
26*df8bdeb3Sjohnz#
27*df8bdeb3Sjohnz
28*df8bdeb3SjohnzPROG = elfsign
29*df8bdeb3Sjohnz
30*df8bdeb3SjohnzOBJS =	elfsign.o
31*df8bdeb3Sjohnz
32*df8bdeb3SjohnzSRCS = $(OBJS:.o=.c)
33*df8bdeb3Sjohnz
34*df8bdeb3Sjohnzinclude $(SRC)/cmd/Makefile.cmd
35*df8bdeb3Sjohnz
36*df8bdeb3SjohnzCFLAGS += $(CCVERBOSE)
37*df8bdeb3Sjohnz
38*df8bdeb3SjohnzLDLIBS += -lkmf -lelfsign -lcryptoutil
39*df8bdeb3Sjohnz
40*df8bdeb3Sjohnz.KEEP_STATE:
41*df8bdeb3Sjohnz
42*df8bdeb3Sjohnzall:    $(PROG)
43*df8bdeb3Sjohnz
44*df8bdeb3Sjohnz$(PROG): $(OBJS)
45*df8bdeb3Sjohnz	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
46*df8bdeb3Sjohnz	$(POST_PROCESS)
47*df8bdeb3Sjohnz
48*df8bdeb3Sjohnzinstall: all $(ROOTPROG)
49*df8bdeb3Sjohnz
50*df8bdeb3Sjohnzclean:
51*df8bdeb3Sjohnz	$(RM) -f $(OBJS) $(PROG)
52*df8bdeb3Sjohnz
53*df8bdeb3Sjohnzlint:   lint_SRCS
54*df8bdeb3Sjohnz
55*df8bdeb3Sjohnzinclude $(SRC)/cmd/Makefile.targ
56