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# 2108278a5eSRod Evans 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-gateLIBRARY = liblddbg.a 277c478bd9Sstevel@tonic-gateVERS = .4 287c478bd9Sstevel@tonic-gate 292017c965SRod EvansCOMOBJS = args.o audit.o basic.o debug.o \ 302017c965SRod Evans syminfo.o tls.o 315aefb655Srie 3298c080d5SRod EvansCOMOBJS32 = bindings32.o cap32.o dlfcns32.o dynamic32.o \ 3320272c2eSAli Bahrami elf32.o entry32.o files32.o got32.o \ 3420272c2eSAli Bahrami libs32.o map32.o move32.o phdr32.o \ 3520272c2eSAli Bahrami relocate32.o sections32.o segments32.o shdr32.o \ 3620272c2eSAli Bahrami statistics32.o support32.o syms32.o unused32.o \ 3720272c2eSAli Bahrami util32.o version32.o 385aefb655Srie 3998c080d5SRod EvansCOMOBJS64 = bindings64.o cap64.o dlfcns64.o dynamic64.o \ 4020272c2eSAli Bahrami elf64.o entry64.o files64.o got64.o \ 4120272c2eSAli Bahrami libs64.o map64.o move64.o phdr64.o \ 4220272c2eSAli Bahrami relocate64.o sections64.o segments64.o shdr64.o \ 4320272c2eSAli Bahrami statistics64.o support64.o syms64.o unused64.o \ 4420272c2eSAli Bahrami util64.o version64.o 455aefb655Srie 467c478bd9Sstevel@tonic-gateBLTOBJ = msg.o 477c478bd9Sstevel@tonic-gate 485aefb655SrieTOOLOBJ = alist.o 495aefb655Srie 505aefb655SrieOBJECTS = $(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ) 515aefb655Srie 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 547c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.com 557c478bd9Sstevel@tonic-gate 56f808c858SrafSRCDIR = ../common 577c478bd9Sstevel@tonic-gate 585aefb655SrieLINTFLAGS += -u -D_REENTRANT 595aefb655SrieLINTFLAGS64 += -u -D_REENTRANT 60*7014882cSRichard Lowe 61*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 62*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 647c478bd9Sstevel@tonic-gate 6520c1c355SRod EvansCPPFLAGS += -I$(SRCBASE)/lib/libc/inc 6608278a5eSRod EvansDYNFLAGS += $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN' 675aefb655SrieLDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gatenative := DYNFLAGS += $(CONVLIBDIR) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateBLTDEFS = msg.h 727c478bd9Sstevel@tonic-gateBLTDATA = msg.c 737c478bd9Sstevel@tonic-gateBLTMESG = $(SGSMSGDIR)/liblddbg 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gateSGSMSGCOM = ../common/liblddbg.msg 787c478bd9Sstevel@tonic-gateSGSMSGALL = $(SGSMSGCOM) 795aefb655SrieSGSMSGTARG = $(SGSMSGCOM) 807c478bd9Sstevel@tonic-gateSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg 817c478bd9Sstevel@tonic-gate 825aefb655SrieCHKSRCS = $(COMOBJS32:%32.o=../common/%.c) 837c478bd9Sstevel@tonic-gate 845aefb655SrieSRCS = ../common/llib-llddbg 855aefb655SrieLIBSRCS = $(COMOBJS:%.o=../common/%.c) \ 865aefb655Srie $(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA) 875aefb655Srie 885aefb655SrieLINTSRCS = $(LIBSRCS) ../common/lintsup.c 895aefb655SrieLINTSRCS32 = $(COMOBJS32:%32.o=../common/%.c) 905aefb655SrieLINTSRCS64 = $(COMOBJS64:%64.o=../common/%.c) 915aefb655Srie 925aefb655SrieCLEANFILES += $(LINTOUTS) $(BLTFILES) 937c478bd9Sstevel@tonic-gateCLOBBERFILES += $(DYNLIB) $(LINTLIBS) $(LIBLINKS) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gateROOTFS_DYNLIB = $(DYNLIB:%=$(ROOTFS_LIBDIR)/%) 96