2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# CDDL HEADER START
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# The contents of this file are subject to the terms of the
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# Common Development and Distribution License (the "License").
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# You may not use this file except in compliance with the License.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# or http://www.opensolaris.org/os/licensing.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# See the License for the specific language governing permissions
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# and limitations under the License.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# When distributing Covered Code, include this CDDL HEADER in each
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# If applicable, add the following below this CDDL HEADER, with the
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# fields enclosed by brackets "[]" replaced with your own identifying
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# information: Portions Copyright [yyyy] [name of copyright owner]
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# CDDL HEADER END
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
69112edd987c28fa551d4f8d9362a84a45365f17Ali Bahrami# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie# Use is subject to license terms.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecriePROG= elfwrap
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieinclude $(SRC)/cmd/Makefile.cmd
2722387f30847b828b57ba9ca59d2b47ee9244ecrieinclude $(SRC)/cmd/sgs/Makefile.com
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieCOMOBJ = main.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieMACHOBJ = machine.sparc.o machine.sparcv9.o \
2722387f30847b828b57ba9ca59d2b47ee9244ecrie machine.i386.o machine.amd64.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieCOMOBJ32 = elfwrap32.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieCOMOBJ64 = elfwrap64.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieTOOLOBJS = alist.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieBLTOBJ = msg.o
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieOBJS= $(BLTOBJ) $(COMOBJ) $(MACHOBJ) $(COMOBJ32) $(COMOBJ64) \
2722387f30847b828b57ba9ca59d2b47ee9244ecrie $(TOOLOBJS)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieMAPFILES = $(MAPFILE.NGB)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieMAPOPTS = $(MAPFILES:%=-M%)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
69112edd987c28fa551d4f8d9362a84a45365f17Ali BahramiCPPFLAGS = -I. -I../common -I../../include $(CPPFLAGS.master) -I$(ELFCAP)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLLDFLAGS =
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLLDFLAGS64 =
08278a5e91755ccdb5850c19d21d42fb2e16b50eRod EvansLDFLAGS += $(VERSREF) $(CC_USE_PROTO) $(MAPOPTS) $(LLDFLAGS)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLDLIBS += $(ELFLIBDIR) -lelf $(CONVLIBDIR) $(CONV_LIB)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLINTFLAGS += -x
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLINTFLAGS64 += -x
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
2722387f30847b828b57ba9ca59d2b47ee9244ecrieBLTDEFS = msg.h
2722387f30847b828b57ba9ca59d2b47ee9244ecrieBLTDATA = msg.c
2722387f30847b828b57ba9ca59d2b47ee9244ecrieBLTMESG = $(SGSMSGDIR)/elfwrap
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieSGSMSGCOM = ../common/elfwrap.msg
2722387f30847b828b57ba9ca59d2b47ee9244ecrieSGSMSGTARG = $(SGSMSGCOM)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieSGSMSGALL = $(SGSMSGCOM)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfwrap_msg
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieSRCS = $(COMOBJ:%.o=../common/%.c) ../common/machine.c \
2722387f30847b828b57ba9ca59d2b47ee9244ecrie $(COMOBJ32:%32.o=../common/%.c) \
2722387f30847b828b57ba9ca59d2b47ee9244ecrie $(TOOLOBJ:%.o=../../tools/common/%.c) $(BLTDATA)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieLINTSRCS = $(SRCS) ../common/lintsup.c
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieCLEANFILES += $(LINTOUTS) $(BLTFILES)