12722387fSrie# 22722387fSrie# CDDL HEADER START 32722387fSrie# 42722387fSrie# The contents of this file are subject to the terms of the 52722387fSrie# Common Development and Distribution License (the "License"). 62722387fSrie# You may not use this file except in compliance with the License. 72722387fSrie# 82722387fSrie# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92722387fSrie# or http://www.opensolaris.org/os/licensing. 102722387fSrie# See the License for the specific language governing permissions 112722387fSrie# and limitations under the License. 122722387fSrie# 132722387fSrie# When distributing Covered Code, include this CDDL HEADER in each 142722387fSrie# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152722387fSrie# If applicable, add the following below this CDDL HEADER, with the 162722387fSrie# fields enclosed by brackets "[]" replaced with your own identifying 172722387fSrie# information: Portions Copyright [yyyy] [name of copyright owner] 182722387fSrie# 192722387fSrie# CDDL HEADER END 202722387fSrie# 212722387fSrie 222722387fSrie# 2369112eddSAli Bahrami# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 242722387fSrie# Use is subject to license terms. 252722387fSrie# 262722387fSrie 272722387fSriePROG= elfwrap 282722387fSrie 292722387fSrieinclude $(SRC)/cmd/Makefile.cmd 302722387fSrieinclude $(SRC)/cmd/sgs/Makefile.com 312722387fSrie 322722387fSrieCOMOBJ = main.o 332722387fSrie 342722387fSrieMACHOBJ = machine.sparc.o machine.sparcv9.o \ 352722387fSrie machine.i386.o machine.amd64.o 362722387fSrie 372722387fSrieCOMOBJ32 = elfwrap32.o 382722387fSrie 392722387fSrieCOMOBJ64 = elfwrap64.o 402722387fSrie 412722387fSrieTOOLOBJS = alist.o 422722387fSrie 432722387fSrieBLTOBJ = msg.o 442722387fSrie 452722387fSrieOBJS= $(BLTOBJ) $(COMOBJ) $(MACHOBJ) $(COMOBJ32) $(COMOBJ64) \ 462722387fSrie $(TOOLOBJS) 472722387fSrie 482722387fSrieMAPFILES = $(MAPFILE.NGB) 492722387fSrieMAPOPTS = $(MAPFILES:%=-M%) 502722387fSrie 5169112eddSAli BahramiCPPFLAGS = -I. -I../common -I../../include $(CPPFLAGS.master) -I$(ELFCAP) 522722387fSrieLLDFLAGS = 532722387fSrieLLDFLAGS64 = 5408278a5eSRod EvansLDFLAGS += $(VERSREF) $(CC_USE_PROTO) $(MAPOPTS) $(LLDFLAGS) 552722387fSrieLDLIBS += $(ELFLIBDIR) -lelf $(CONVLIBDIR) $(CONV_LIB) 562722387fSrie 572722387fSrieLINTFLAGS += -x 582722387fSrieLINTFLAGS64 += -x 592722387fSrie 60*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 61*7014882cSRichard Lowe 622722387fSrieBLTDEFS = msg.h 632722387fSrieBLTDATA = msg.c 642722387fSrieBLTMESG = $(SGSMSGDIR)/elfwrap 652722387fSrie 662722387fSrieBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 672722387fSrie 682722387fSrieSGSMSGCOM = ../common/elfwrap.msg 692722387fSrieSGSMSGTARG = $(SGSMSGCOM) 702722387fSrieSGSMSGALL = $(SGSMSGCOM) 712722387fSrieSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfwrap_msg 722722387fSrie 732722387fSrieSRCS = $(COMOBJ:%.o=../common/%.c) ../common/machine.c \ 742722387fSrie $(COMOBJ32:%32.o=../common/%.c) \ 752722387fSrie $(TOOLOBJ:%.o=../../tools/common/%.c) $(BLTDATA) 762722387fSrieLINTSRCS = $(SRCS) ../common/lintsup.c 772722387fSrie 782722387fSrieCLEANFILES += $(LINTOUTS) $(BLTFILES) 79