xref: /titanic_44/usr/src/cmd/sgs/ld/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
55aefb655Srie# Common Development and Distribution License (the "License").
65aefb655Srie# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
215aefb655Srie
227c478bd9Sstevel@tonic-gate#
2320c1c355SRod Evans# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gatePROG =		ld
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateinclude 	$(SRC)/cmd/Makefile.cmd
297c478bd9Sstevel@tonic-gateinclude 	$(SRC)/cmd/sgs/Makefile.com
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateCOMOBJS =	ld.o
327c478bd9Sstevel@tonic-gateBLTOBJ =	msg.o
337c478bd9Sstevel@tonic-gate
345aefb655SrieOBJS =		$(BLTOBJ) $(COMOBJS)
357c478bd9Sstevel@tonic-gate.PARALLEL:	$(OBJS)
367c478bd9Sstevel@tonic-gate
3724da5b34SrieMAPFILES =	../common/mapfile-intf $(MAPFILE.NGB)
3824da5b34SrieMAPOPTS =	$(MAPFILES:%=-M%)
397c478bd9Sstevel@tonic-gate
4008278a5eSRod EvansLDFLAGS +=	$(VERSREF) $(CC_USE_PROTO) $(MAPOPTS) $(VAR_LD_LLDFLAGS)
415aefb655SrieLDLIBS +=	$(LDLIBDIR) $(LD_LIB) $(ELFLIBDIR) -lelf \
425aefb655Srie		    $(LDDBGLIBDIR) $(LDDBG_LIB) $(CONVLIBDIR) $(CONV_LIB)
437c478bd9Sstevel@tonic-gate
44*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
45*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
46*7014882cSRichard Lowe
477c478bd9Sstevel@tonic-gateLINTFLAGS +=	-x
485aefb655SrieLINTFLAGS64 +=	-x $(VAR_LINTFLAGS64)
495aefb655Srie
507c478bd9Sstevel@tonic-gateCLEANFILES +=	$(LINTOUTS)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gatenative :=	LDFLAGS = -R$(SGSPROTO) $(ZNOVERSION)
535aefb655Srienative :=	LDLIBS = -L$(SGSPROTO) $(LD_LIB) -lelf $(CONVLIBDIR) \
5420c1c355SRod Evans		    $(CONV_LIB)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateBLTDEFS=	msg.h
577c478bd9Sstevel@tonic-gateBLTDATA=	msg.c
587c478bd9Sstevel@tonic-gateBLTMESG=	$(SGSMSGDIR)/ld
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gateBLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateSGSMSGCOM=	../common/ld.msg
637c478bd9Sstevel@tonic-gateSGSMSGTARG=	$(SGSMSGCOM)
647c478bd9Sstevel@tonic-gateSGSMSGALL=	$(SGSMSGCOM)
657c478bd9Sstevel@tonic-gateSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ld_msg
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateSRCS=		$(MACHOBJS:%.o=%.c)  $(COMOBJS:%.o=../common/%.c)  $(BLTDATA)
687c478bd9Sstevel@tonic-gateLINTSRCS=	$(SRCS) ../common/lintsup.c
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateCLEANFILES +=	$(BLTFILES)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateFILEMODE=	0755
73