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 5*2722Sjohnlev# Common Development and Distribution License (the "License"). 6*2722Sjohnlev# 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# 210Sstevel@tonic-gate# 22*2722Sjohnlev# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate 270Sstevel@tonic-gateinclude ../../Makefile.ctf 280Sstevel@tonic-gate 290Sstevel@tonic-gate.KEEP_STATE: 300Sstevel@tonic-gate.PARALLEL: 310Sstevel@tonic-gate 320Sstevel@tonic-gatePROG=ctfconvert ctfmerge 330Sstevel@tonic-gate 340Sstevel@tonic-gateGENSRCS= \ 350Sstevel@tonic-gate alist.c \ 360Sstevel@tonic-gate barrier.c \ 370Sstevel@tonic-gate ctf.c \ 380Sstevel@tonic-gate fifo.c \ 390Sstevel@tonic-gate hash.c \ 400Sstevel@tonic-gate iidesc.c \ 410Sstevel@tonic-gate input.c \ 420Sstevel@tonic-gate list.c \ 430Sstevel@tonic-gate memory.c \ 440Sstevel@tonic-gate merge.c \ 450Sstevel@tonic-gate output.c \ 460Sstevel@tonic-gate stack.c \ 470Sstevel@tonic-gate strtab.c \ 480Sstevel@tonic-gate symbol.c \ 490Sstevel@tonic-gate tdata.c \ 500Sstevel@tonic-gate traverse.c \ 510Sstevel@tonic-gate util.c 520Sstevel@tonic-gate 530Sstevel@tonic-gateCVTSRCS=$(GENSRCS) \ 540Sstevel@tonic-gate ctfconvert.c \ 550Sstevel@tonic-gate dwarf.c \ 560Sstevel@tonic-gate stabs.c \ 57*2722Sjohnlev fixup_tdescs.c \ 580Sstevel@tonic-gate st_parse.c 590Sstevel@tonic-gateCVTOBJS=$(CVTSRCS:%.c=%.o) 600Sstevel@tonic-gateCVTLINTFILES = $(CVTSRCS:%.c=%.ln) 610Sstevel@tonic-gate 620Sstevel@tonic-gateMRGSRCS=$(GENSRCS) \ 630Sstevel@tonic-gate ctfmerge.c 640Sstevel@tonic-gateMRGOBJS=$(MRGSRCS:%.c=%.o) 650Sstevel@tonic-gateMRGLINTFILES = $(MRGSRCS:%.c=%.ln) 660Sstevel@tonic-gate 670Sstevel@tonic-gateSRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS) 680Sstevel@tonic-gateOBJS=$(SRCS:%.c=%.o) 690Sstevel@tonic-gateLINTFILES=$(SRCS:%.c=%.ln) 700Sstevel@tonic-gate 710Sstevel@tonic-gateDWARFSRCLIBDIR = ../../dwarf 720Sstevel@tonic-gate 730Sstevel@tonic-gateDWARFLDFLAGS = \ 740Sstevel@tonic-gate -L$(DWARFSRCLIBDIR)/$(MACH) \ 750Sstevel@tonic-gate '-R$$ORIGIN/../../lib/$(MACH)' \ 760Sstevel@tonic-gate -ldwarf 770Sstevel@tonic-gateDWARFCPPFLAGS = -I$(DWARFSRCLIBDIR) 780Sstevel@tonic-gate 790Sstevel@tonic-gateLDLIBS += -lz -lelf 800Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 810Sstevel@tonic-gateCFLAGS += $(CTF_FLAGS) 820Sstevel@tonic-gateLINTFLAGS += -mnux 830Sstevel@tonic-gate 840Sstevel@tonic-gateC99MODE = $(C99_ENABLE) 850Sstevel@tonic-gate 860Sstevel@tonic-gatectfconvert := LDFLAGS += $(DWARFLDFLAGS) 870Sstevel@tonic-gate 880Sstevel@tonic-gatedwarf.o dwarf.ln := CPPFLAGS += $(DWARFCPPFLAGS) 89