xref: /titanic_41/usr/src/cmd/sgs/elfwrap/Makefile.com (revision 67e3a03ed4a2813074d36330f062ed6e593a4937)
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#
232722387fSrie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
242722387fSrie# Use is subject to license terms.
252722387fSrie#
262722387fSrie# ident	"%Z%%M%	%I%	%E% SMI"
272722387fSrie#
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
432722387fSrieTOOLOBJS =	alist.o
442722387fSrie
452722387fSrieBLTOBJ =	msg.o
462722387fSrie
472722387fSrieOBJS=		$(BLTOBJ) $(COMOBJ) $(MACHOBJ) $(COMOBJ32) $(COMOBJ64) \
482722387fSrie		$(TOOLOBJS)
492722387fSrie
502722387fSrieMAPFILES =	$(MAPFILE.NGB)
512722387fSrieMAPOPTS =	$(MAPFILES:%=-M%)
522722387fSrie
532722387fSrieCPPFLAGS =	-I. -I../common -I../../include $(CPPFLAGS.master)
542722387fSrieLLDFLAGS =
552722387fSrieLLDFLAGS64 =
56*67e3a03eSrieLDFLAGS +=	$(VERSREF) $(USE_PROTO) $(MAPOPTS) $(LLDFLAGS)
572722387fSrieLDLIBS +=	$(ELFLIBDIR) -lelf $(CONVLIBDIR) $(CONV_LIB)
582722387fSrie
592722387fSrieLINTFLAGS +=	-x
602722387fSrieLINTFLAGS64 +=	-x
612722387fSrie
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