10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51618Srie# Common Development and Distribution License (the "License"). 61618Srie# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 211618Srie 220Sstevel@tonic-gate# 23*12927SRod.Evans@Sun.COM# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate 261618SriePROG = ld 270Sstevel@tonic-gate 280Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 290Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.com 300Sstevel@tonic-gate 311618SrieCOMOBJS = ld.o 321618SrieBLTOBJ = msg.o 330Sstevel@tonic-gate 341618SrieOBJS = $(BLTOBJ) $(COMOBJS) 350Sstevel@tonic-gate.PARALLEL: $(OBJS) 360Sstevel@tonic-gate 374271SrieMAPFILES = ../common/mapfile-intf $(MAPFILE.NGB) 384271SrieMAPOPTS = $(MAPFILES:%=-M%) 390Sstevel@tonic-gate 4011827SRod.Evans@Sun.COMLDFLAGS += $(VERSREF) $(CC_USE_PROTO) $(MAPOPTS) $(VAR_LD_LLDFLAGS) 411618SrieLDLIBS += $(LDLIBDIR) $(LD_LIB) $(ELFLIBDIR) -lelf \ 421618Srie $(LDDBGLIBDIR) $(LDDBG_LIB) $(CONVLIBDIR) $(CONV_LIB) 430Sstevel@tonic-gate 440Sstevel@tonic-gateLINTFLAGS += -x 451618SrieLINTFLAGS64 += -x $(VAR_LINTFLAGS64) 461618Srie 470Sstevel@tonic-gateCLEANFILES += $(LINTOUTS) 480Sstevel@tonic-gate 490Sstevel@tonic-gatenative := LDFLAGS = -R$(SGSPROTO) $(ZNOVERSION) 501618Srienative := LDLIBS = -L$(SGSPROTO) $(LD_LIB) -lelf $(CONVLIBDIR) \ 51*12927SRod.Evans@Sun.COM $(CONV_LIB) 520Sstevel@tonic-gate 530Sstevel@tonic-gateBLTDEFS= msg.h 540Sstevel@tonic-gateBLTDATA= msg.c 550Sstevel@tonic-gateBLTMESG= $(SGSMSGDIR)/ld 560Sstevel@tonic-gate 570Sstevel@tonic-gateBLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG) 580Sstevel@tonic-gate 590Sstevel@tonic-gateSGSMSGCOM= ../common/ld.msg 600Sstevel@tonic-gateSGSMSGTARG= $(SGSMSGCOM) 610Sstevel@tonic-gateSGSMSGALL= $(SGSMSGCOM) 620Sstevel@tonic-gateSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ld_msg 630Sstevel@tonic-gate 640Sstevel@tonic-gateSRCS= $(MACHOBJS:%.o=%.c) $(COMOBJS:%.o=../common/%.c) $(BLTDATA) 650Sstevel@tonic-gateLINTSRCS= $(SRCS) ../common/lintsup.c 660Sstevel@tonic-gate 670Sstevel@tonic-gateCLEANFILES += $(BLTFILES) 680Sstevel@tonic-gate 690Sstevel@tonic-gateFILEMODE= 0755 70