756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# CDDL HEADER START
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# The contents of this file are subject to the terms of the
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# Common Development and Distribution License (the "License").
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# You may not use this file except in compliance with the License.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# or http://www.opensolaris.org/os/licensing.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# See the License for the specific language governing permissions
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# and limitations under the License.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# When distributing Covered Code, include this CDDL HEADER in each
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# If applicable, add the following below this CDDL HEADER, with the
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# fields enclosed by brackets "[]" replaced with your own identifying
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# information: Portions Copyright [yyyy] [name of copyright owner]
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# CDDL HEADER END
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington# Use is subject to license terms.
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington#
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonPROG= elfsign
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonSHFILES= elfsigncmp
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonLIBOBJS= elfcertlib.o elfsignlib.o
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonOBJS= $(PROG).o $(LIBOBJS)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington.PARALLEL: $(OBJS)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCMDDIR= $(SRC)/cmd/cmd-crypto/elfsign
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonLIBDIR= $(SRC)/lib/libelfsign/common
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonSRCS= $(CMDDIR)/$(PROG).c $(LIBOBJS:%.o=$(LIBDIR)/%.c)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCLEANFILES= $(PROG) $(OBJS) $(SHFILES)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtoninclude ../../../src/tools/Makefile.tools
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCFLAGS += $(CCVERBOSE)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCFLAGS += -_gcc=-fasm
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCPPFLAGS += -I$(SRC)/lib/libelfsign/common
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCPPFLAGS += -I$(SRC)/uts/common
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCPPFLAGS += -I$(SRC)/lib/libkmf/include
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCPPFLAGS += -I$(SRC)/lib/libcryptoutil/common
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonLDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonCERRWARN += -_gcc=-Wno-unused
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington.KEEP_STATE:
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtonall: $(PROG) $(SHFILES)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtoninstall: all .WAIT $(ROOTONBLDMACHPROG) $(ROOTONBLDSHFILES)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington$(PROG): $(OBJS)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington $(POST_PROCESS)
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington%.o: $(CMDDIR)/%.c
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington $(COMPILE.c) -o $@ $<
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington%.o: $(LIBDIR)/%.c
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington $(COMPILE.c) -o $@ $<
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtonlint: lint_SRCS
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington
clean:
$(RM) $(CLEANFILES)
include ../../../src/tools/Makefile.targ