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# 26cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 27cf9a187cSAndy Fiddaman# 282722387fSrie 292722387fSriePROG= elfwrap 302722387fSrie 312722387fSrieinclude $(SRC)/cmd/Makefile.cmd 322722387fSrieinclude $(SRC)/cmd/sgs/Makefile.com 332722387fSrie 342722387fSrieCOMOBJ = main.o 352722387fSrie 362722387fSrieMACHOBJ = machine.sparc.o machine.sparcv9.o \ 372722387fSrie machine.i386.o machine.amd64.o 382722387fSrie 392722387fSrieCOMOBJ32 = elfwrap32.o 402722387fSrie 412722387fSrieCOMOBJ64 = elfwrap64.o 422722387fSrie 4369b1fd3fSRichard LoweSGSCOMMONOBJ = alist.o 442722387fSrie 452722387fSrieBLTOBJ = msg.o 462722387fSrie 472722387fSrieOBJS= $(BLTOBJ) $(COMOBJ) $(MACHOBJ) $(COMOBJ32) $(COMOBJ64) \ 4869b1fd3fSRichard Lowe $(SGSCOMMONOBJ) 492722387fSrie 502722387fSrieMAPFILES = $(MAPFILE.NGB) 51*85f4cb87SRichard LoweMAPOPTS = $(MAPFILES:%=-Wl,-M%) 522722387fSrie 5369112eddSAli BahramiCPPFLAGS = -I. -I../common -I../../include $(CPPFLAGS.master) -I$(ELFCAP) 542722387fSrieLLDFLAGS = 552722387fSrieLLDFLAGS64 = 5669b1fd3fSRichard LoweLDFLAGS += $(VERSREF) $(MAPOPTS) $(LLDFLAGS) 5769b1fd3fSRichard LoweLDLIBS += $(ELFLIBDIR) -lelf $(CONVLIBDIR) -lconv 582722387fSrie 59d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 607014882cSRichard Lowe 612722387fSrieBLTDEFS = msg.h 622722387fSrieBLTDATA = msg.c 632722387fSrieBLTMESG = $(SGSMSGDIR)/elfwrap 642722387fSrie 652722387fSrieBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 662722387fSrie 672722387fSrieSGSMSGCOM = ../common/elfwrap.msg 682722387fSrieSGSMSGTARG = $(SGSMSGCOM) 692722387fSrieSGSMSGALL = $(SGSMSGCOM) 702722387fSrieSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfwrap_msg 712722387fSrie 722722387fSrieSRCS = $(COMOBJ:%.o=../common/%.c) ../common/machine.c \ 732722387fSrie $(COMOBJ32:%32.o=../common/%.c) \ 7469b1fd3fSRichard Lowe $(SGSCOMMONOBJ:%.o=$(SGSCOMMON)/%.c) $(BLTDATA) 752722387fSrie 76cf9a187cSAndy FiddamanCLEANFILES += $(BLTFILES) 77