xref: /titanic_41/usr/src/cmd/sgs/elfwrap/Makefile.com (revision 69112edd987c28fa551d4f8d9362a84a45365f17)
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#
23*69112eddSAli 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
51*69112eddSAli BahramiCPPFLAGS =	-I. -I../common -I../../include $(CPPFLAGS.master) -I$(ELFCAP)
522722387fSrieLLDFLAGS =
532722387fSrieLLDFLAGS64 =
5467e3a03eSrieLDFLAGS +=	$(VERSREF) $(USE_PROTO) $(MAPOPTS) $(LLDFLAGS)
552722387fSrieLDLIBS +=	$(ELFLIBDIR) -lelf $(CONVLIBDIR) $(CONV_LIB)
562722387fSrie
572722387fSrieLINTFLAGS +=	-x
582722387fSrieLINTFLAGS64 +=	-x
592722387fSrie
602722387fSrieBLTDEFS =	msg.h
612722387fSrieBLTDATA =	msg.c
622722387fSrieBLTMESG =	$(SGSMSGDIR)/elfwrap
632722387fSrie
642722387fSrieBLTFILES =	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
652722387fSrie
662722387fSrieSGSMSGCOM =	../common/elfwrap.msg
672722387fSrieSGSMSGTARG =	$(SGSMSGCOM)
682722387fSrieSGSMSGALL =	$(SGSMSGCOM)
692722387fSrieSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfwrap_msg
702722387fSrie
712722387fSrieSRCS =		$(COMOBJ:%.o=../common/%.c) ../common/machine.c \
722722387fSrie		$(COMOBJ32:%32.o=../common/%.c) \
732722387fSrie		$(TOOLOBJ:%.o=../../tools/common/%.c) $(BLTDATA)
742722387fSrieLINTSRCS =	$(SRCS) ../common/lintsup.c
752722387fSrie
762722387fSrieCLEANFILES +=	$(LINTOUTS) $(BLTFILES)
77