0N/A#
31N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
87N/A
0N/APROG= elfsign
0N/ASHFILES= elfsigncmp
0N/A
0N/ALIBOBJS= elfcertlib.o elfsignlib.o
0N/AOBJS= $(PROG).o $(LIBOBJS)
0N/A
0N/A.PARALLEL: $(OBJS)
0N/A
0N/ACMDDIR= $(SRC)/cmd/cmd-crypto/elfsign
0N/ALIBDIR= $(SRC)/lib/libelfsign/common
0N/ASRCS= $(CMDDIR)/$(PROG).c $(LIBOBJS:%.o=$(LIBDIR)/%.c)
0N/ACLEANFILES= $(PROG) $(OBJS) $(SHFILES)
0N/A
0N/Ainclude ../../../src/tools/Makefile.tools
0N/A
0N/ACFLAGS += $(CCVERBOSE)
0N/ACFLAGS += -_gcc=-fasm
87N/A
87N/ACPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
0N/ACPPFLAGS += -I$(SRC)/lib/libelfsign/common
0N/ACPPFLAGS += -I$(SRC)/uts/common
0N/ACPPFLAGS += -I$(SRC)/lib/libkmf/include
0N/ACPPFLAGS += -I$(SRC)/lib/libcryptoutil/common
0N/ALDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc
0N/A
0N/ACERRWARN += -_gcc=-Wno-unused
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall: $(PROG) $(SHFILES)
0N/A
87N/Ainstall: all .WAIT $(ROOTONBLDMACHPROG) $(ROOTONBLDSHFILES)
59N/A
59N/A$(PROG): $(OBJS)
59N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
59N/A $(POST_PROCESS)
59N/A
59N/A%.o: $(CMDDIR)/%.c
59N/A $(COMPILE.c) -o $@ $<
59N/A
0N/A%.o: $(LIBDIR)/%.c
87N/A $(COMPILE.c) -o $@ $<
87N/A
87N/Alint: lint_SRCS
87N/A
87N/Aclean:
87N/A $(RM) $(CLEANFILES)
87N/A
87N/Ainclude ../../../src/tools/Makefile.targ
0N/A