1d29b2c44Sab196087# 2d29b2c44Sab196087# CDDL HEADER START 3d29b2c44Sab196087# 4d29b2c44Sab196087# The contents of this file are subject to the terms of the 5d29b2c44Sab196087# Common Development and Distribution License (the "License"). 6d29b2c44Sab196087# You may not use this file except in compliance with the License. 7d29b2c44Sab196087# 8d29b2c44Sab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d29b2c44Sab196087# or http://www.opensolaris.org/os/licensing. 10d29b2c44Sab196087# See the License for the specific language governing permissions 11d29b2c44Sab196087# and limitations under the License. 12d29b2c44Sab196087# 13d29b2c44Sab196087# When distributing Covered Code, include this CDDL HEADER in each 14d29b2c44Sab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d29b2c44Sab196087# If applicable, add the following below this CDDL HEADER, with the 16d29b2c44Sab196087# fields enclosed by brackets "[]" replaced with your own identifying 17d29b2c44Sab196087# information: Portions Copyright [yyyy] [name of copyright owner] 18d29b2c44Sab196087# 19d29b2c44Sab196087# CDDL HEADER END 20d29b2c44Sab196087# 21d29b2c44Sab196087 22d29b2c44Sab196087# 2369112eddSAli Bahrami# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24d29b2c44Sab196087# Use is subject to license terms. 25d29b2c44Sab196087# 26d29b2c44Sab196087 27d29b2c44Sab196087PROG= elfedit 28d29b2c44Sab196087 29d29b2c44Sab196087include $(SRC)/cmd/Makefile.cmd 30d29b2c44Sab196087include $(SRC)/cmd/sgs/Makefile.com 31d29b2c44Sab196087 32d29b2c44Sab196087COMOBJ = elfedit.o sys.o util.o elfconst.o 33d29b2c44Sab196087 34d29b2c44Sab196087COMOBJ32 = elfedit_machelf32.o util_machelf32.o 35d29b2c44Sab196087 36d29b2c44Sab196087COMOBJ64 = elfedit_machelf64.o util_machelf64.o 37d29b2c44Sab196087 38d29b2c44Sab196087BLTOBJ = msg.o 39d29b2c44Sab196087 404f680cc6SAli BahramiOBJS= $(BLTOBJ) $(COMOBJ) $(COMOBJ32) $(COMOBJ64) 41d29b2c44Sab196087 42d29b2c44Sab196087MAPFILE= ../common/mapfile-vers 43d29b2c44Sab196087 44d29b2c44Sab196087CPPFLAGS= -I. -I../common -I../../include -I../../include/$(MACH) \ 45d29b2c44Sab196087 -I$(SRCBASE)/lib/libc/inc -I$(SRCBASE)/uts/$(ARCH)/sys \ 4669112eddSAli Bahrami $(CPPFLAGS.master) -I$(ELFCAP) 47d29b2c44Sab196087LLDFLAGS = $(VAR_ELFEDIT_LLDFLAGS) 48d29b2c44Sab196087LLDFLAGS64 = $(VAR_ELFEDIT_LLDFLAGS64) 4908278a5eSRod EvansLDFLAGS += $(VERSREF) $(CC_USE_PROTO) -M$(MAPFILE) $(LLDFLAGS) 50d29b2c44Sab196087LDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \ 51d29b2c44Sab196087 $(CONVLIBDIR) $(CONV_LIB) -ltecla 52d29b2c44Sab196087 53d29b2c44Sab196087LINTFLAGS += -x 54d29b2c44Sab196087LINTFLAGS64 += -x 55d29b2c44Sab196087 56*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 57*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 58*7014882cSRichard Lowe 59d29b2c44Sab196087BLTDEFS = msg.h 60d29b2c44Sab196087BLTDATA = msg.c 61d29b2c44Sab196087BLTMESG = $(SGSMSGDIR)/elfedit 62d29b2c44Sab196087 63d29b2c44Sab196087BLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 64d29b2c44Sab196087 65d29b2c44Sab196087SGSMSGCOM = ../common/elfedit.msg 66d29b2c44Sab196087SGSMSGTARG = $(SGSMSGCOM) 67d29b2c44Sab196087SGSMSGALL = $(SGSMSGCOM) 68d29b2c44Sab196087SGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfedit_msg 69d29b2c44Sab196087 70d29b2c44Sab196087SRCS = $(COMOBJ:%.o=../common/%.c) \ 71d29b2c44Sab196087 $(COMOBJ32:%32.o=../common/%.c) \ 724f680cc6SAli Bahrami $(BLTDATA) 73d29b2c44Sab196087LINTSRCS = $(SRCS) ../common/lintsup.c 74d29b2c44Sab196087 75d29b2c44Sab196087CLEANFILES += $(LINTOUTS) $(BLTFILES) 76