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 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# 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# 2111827SRod.Evans@Sun.COM 220Sstevel@tonic-gate# 2311827SRod.Evans@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 260Sstevel@tonic-gate 270Sstevel@tonic-gateLIBRARY= libldmake.a 280Sstevel@tonic-gateVERS= .1 290Sstevel@tonic-gateOBJECTS= ld_file.o lock.o 300Sstevel@tonic-gate 310Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 320Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.com 330Sstevel@tonic-gate 340Sstevel@tonic-gateROOTLIBDIR= $(ROOT)/opt/SUNWonld/lib 350Sstevel@tonic-gateROOTLIBDIR64= $(ROOT)/opt/SUNWonld/lib/$(MACH64) 360Sstevel@tonic-gate 370Sstevel@tonic-gateSGSPROTO= ../../proto/$(MACH) 380Sstevel@tonic-gate 392522SrafSRCDIR = ../common 400Sstevel@tonic-gate 4111827SRod.Evans@Sun.COMDYNFLAGS += $(CC_USE_PROTO) 420Sstevel@tonic-gate 430Sstevel@tonic-gateCFLAGS += $(C_PICFLAGS) 440Sstevel@tonic-gateCFLAGS64 += $(C_PICFLAGS64) 450Sstevel@tonic-gate 460Sstevel@tonic-gateLINTFLAGS += -erroff=E_NAME_DECL_NOT_USED_DEF2 \ 47*11830SRod.Evans@Sun.COM -erroff=E_NAME_DEF_NOT_USED2 \ 48*11830SRod.Evans@Sun.COM -erroff=E_NAME_USED_NOT_DEF2 490Sstevel@tonic-gateLINTFLAGS64 += -erroff=E_NAME_DECL_NOT_USED_DEF2 \ 50*11830SRod.Evans@Sun.COM -erroff=E_NAME_DEF_NOT_USED2 \ 51*11830SRod.Evans@Sun.COM -erroff=E_NAME_USED_NOT_DEF2 520Sstevel@tonic-gateLINTSRCS = $(SRCS) 530Sstevel@tonic-gate 540Sstevel@tonic-gateSRCS= $(OBJECTS:%.o=../common/%.c) 550Sstevel@tonic-gateLDLIBS += -lc 560Sstevel@tonic-gate 570Sstevel@tonic-gateCLEANFILES += 580Sstevel@tonic-gateCLOBBERFILES += $(DYNLIB) $(LINTLIB) $(LINTOUTS) 590Sstevel@tonic-gate 600Sstevel@tonic-gateROOTDYNLIB= $(DYNLIB:%=$(ROOTLIBDIR)/%) 610Sstevel@tonic-gateROOTDYNLIB64= $(DYNLIB:%=$(ROOTLIBDIR64)/%) 62