Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
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#
2225707c7e7edf7c636ed349df2592ef85329cddValerie Bubb Fenwick# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Use is subject to license terms.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzPROG= elfsign
df8bdeb362277e8d95a74d6c097341fe97409948johnzSHFILES= elfsigncmp
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzLIBOBJS= elfcertlib.o elfsignlib.o
df8bdeb362277e8d95a74d6c097341fe97409948johnzOBJS= $(PROG).o $(LIBOBJS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz.PARALLEL: $(OBJS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzCMDDIR= $(SRC)/cmd/cmd-crypto/elfsign
df8bdeb362277e8d95a74d6c097341fe97409948johnzLIBDIR= $(SRC)/lib/libelfsign/common
df8bdeb362277e8d95a74d6c097341fe97409948johnzSRCS= $(CMDDIR)/$(PROG).c $(LIBOBJS:%.o=$(LIBDIR)/%.c)
df8bdeb362277e8d95a74d6c097341fe97409948johnzCLEANFILES= $(PROG) $(OBJS) $(SHFILES)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinclude ../../../src/tools/Makefile.tools
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzCFLAGS += $(CCVERBOSE)
df8bdeb362277e8d95a74d6c097341fe97409948johnzCFLAGS += -_gcc=-fasm
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
df8bdeb362277e8d95a74d6c097341fe97409948johnzCPPFLAGS += -I$(SRC)/lib/libelfsign/common
df8bdeb362277e8d95a74d6c097341fe97409948johnzCPPFLAGS += -I$(SRC)/uts/common
df8bdeb362277e8d95a74d6c097341fe97409948johnzCPPFLAGS += -I$(SRC)/lib/libkmf/include
df8bdeb362277e8d95a74d6c097341fe97409948johnzCPPFLAGS += -I$(SRC)/lib/libcryptoutil/common
df8bdeb362277e8d95a74d6c097341fe97409948johnzLDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc
df8bdeb362277e8d95a74d6c097341fe97409948johnz
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
df8bdeb362277e8d95a74d6c097341fe97409948johnz.KEEP_STATE:
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzall: $(PROG) $(SHFILES)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinstall: all .WAIT $(ROOTONBLDMACHPROG) $(ROOTONBLDSHFILES)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz$(PROG): $(OBJS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(POST_PROCESS)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz%.o: $(CMDDIR)/%.c
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(COMPILE.c) -o $@ $<
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz%.o: $(LIBDIR)/%.c
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(COMPILE.c) -o $@ $<
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzlint: lint_SRCS
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzclean:
df8bdeb362277e8d95a74d6c097341fe97409948johnz $(RM) $(CLEANFILES)
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzinclude ../../../src/tools/Makefile.targ