1df8bdeb3Sjohnz# 2df8bdeb3Sjohnz# CDDL HEADER START 3df8bdeb3Sjohnz# 4df8bdeb3Sjohnz# The contents of this file are subject to the terms of the 5df8bdeb3Sjohnz# Common Development and Distribution License (the "License"). 6df8bdeb3Sjohnz# You may not use this file except in compliance with the License. 7df8bdeb3Sjohnz# 8df8bdeb3Sjohnz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9df8bdeb3Sjohnz# or http://www.opensolaris.org/os/licensing. 10df8bdeb3Sjohnz# See the License for the specific language governing permissions 11df8bdeb3Sjohnz# and limitations under the License. 12df8bdeb3Sjohnz# 13df8bdeb3Sjohnz# When distributing Covered Code, include this CDDL HEADER in each 14df8bdeb3Sjohnz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15df8bdeb3Sjohnz# If applicable, add the following below this CDDL HEADER, with the 16df8bdeb3Sjohnz# fields enclosed by brackets "[]" replaced with your own identifying 17df8bdeb3Sjohnz# information: Portions Copyright [yyyy] [name of copyright owner] 18df8bdeb3Sjohnz# 19df8bdeb3Sjohnz# CDDL HEADER END 20df8bdeb3Sjohnz# 21df8bdeb3Sjohnz 22df8bdeb3Sjohnz# 232225707cSValerie Bubb Fenwick# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24df8bdeb3Sjohnz# Use is subject to license terms. 25df8bdeb3Sjohnz# 26df8bdeb3Sjohnz 27df8bdeb3SjohnzPROG= elfsign 28df8bdeb3SjohnzSHFILES= elfsigncmp 29df8bdeb3Sjohnz 30df8bdeb3SjohnzLIBOBJS= elfcertlib.o elfsignlib.o 31df8bdeb3SjohnzOBJS= $(PROG).o $(LIBOBJS) 32df8bdeb3Sjohnz 33df8bdeb3Sjohnz.PARALLEL: $(OBJS) 34df8bdeb3Sjohnz 35df8bdeb3SjohnzCMDDIR= $(SRC)/cmd/cmd-crypto/elfsign 36df8bdeb3SjohnzLIBDIR= $(SRC)/lib/libelfsign/common 37df8bdeb3SjohnzSRCS= $(CMDDIR)/$(PROG).c $(LIBOBJS:%.o=$(LIBDIR)/%.c) 38df8bdeb3SjohnzCLEANFILES= $(PROG) $(OBJS) $(SHFILES) 39df8bdeb3Sjohnz 40df8bdeb3Sjohnzinclude ../../../src/tools/Makefile.tools 41df8bdeb3Sjohnz 42df8bdeb3SjohnzCFLAGS += $(CCVERBOSE) 43df8bdeb3SjohnzCFLAGS += -_gcc=-fasm 44df8bdeb3Sjohnz 45df8bdeb3SjohnzCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS 46df8bdeb3SjohnzCPPFLAGS += -I$(SRC)/lib/libelfsign/common 47df8bdeb3SjohnzCPPFLAGS += -I$(SRC)/uts/common 48df8bdeb3SjohnzCPPFLAGS += -I$(SRC)/lib/libkmf/include 49df8bdeb3SjohnzCPPFLAGS += -I$(SRC)/lib/libcryptoutil/common 50*ebaf8c45SMarcel TelkaCPPFLAGS += -I$(SRC)/head 51df8bdeb3SjohnzLDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc 52df8bdeb3Sjohnz 537014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused 547014882cSRichard Lowe 55df8bdeb3Sjohnz.KEEP_STATE: 56df8bdeb3Sjohnz 57df8bdeb3Sjohnzall: $(PROG) $(SHFILES) 58df8bdeb3Sjohnz 59df8bdeb3Sjohnzinstall: all .WAIT $(ROOTONBLDMACHPROG) $(ROOTONBLDSHFILES) 60df8bdeb3Sjohnz 61df8bdeb3Sjohnz$(PROG): $(OBJS) 62df8bdeb3Sjohnz $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 63df8bdeb3Sjohnz $(POST_PROCESS) 64df8bdeb3Sjohnz 65df8bdeb3Sjohnz%.o: $(CMDDIR)/%.c 66df8bdeb3Sjohnz $(COMPILE.c) -o $@ $< 67df8bdeb3Sjohnz 68df8bdeb3Sjohnz%.o: $(LIBDIR)/%.c 69df8bdeb3Sjohnz $(COMPILE.c) -o $@ $< 70df8bdeb3Sjohnz 71df8bdeb3Sjohnzlint: lint_SRCS 72df8bdeb3Sjohnz 73df8bdeb3Sjohnzclean: 74df8bdeb3Sjohnz $(RM) $(CLEANFILES) 75df8bdeb3Sjohnz 76df8bdeb3Sjohnzinclude ../../../src/tools/Makefile.targ 77