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 5e824d57fSjohnlev# Common Development and Distribution License (the "License"). 6e824d57fSjohnlev# 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# 217c478bd9Sstevel@tonic-gate# 22e824d57fSjohnlev# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateinclude ../../Makefile.ctf 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate.KEEP_STATE: 297c478bd9Sstevel@tonic-gate.PARALLEL: 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gatePROG=ctfconvert ctfmerge 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateGENSRCS= \ 347c478bd9Sstevel@tonic-gate alist.c \ 35*7fd79137SRobert Mustacchi altexec.c \ 367c478bd9Sstevel@tonic-gate barrier.c \ 377c478bd9Sstevel@tonic-gate ctf.c \ 387c478bd9Sstevel@tonic-gate fifo.c \ 397c478bd9Sstevel@tonic-gate hash.c \ 407c478bd9Sstevel@tonic-gate iidesc.c \ 417c478bd9Sstevel@tonic-gate input.c \ 427c478bd9Sstevel@tonic-gate list.c \ 437c478bd9Sstevel@tonic-gate memory.c \ 447c478bd9Sstevel@tonic-gate merge.c \ 457c478bd9Sstevel@tonic-gate output.c \ 467c478bd9Sstevel@tonic-gate stack.c \ 477c478bd9Sstevel@tonic-gate strtab.c \ 487c478bd9Sstevel@tonic-gate symbol.c \ 497c478bd9Sstevel@tonic-gate tdata.c \ 507c478bd9Sstevel@tonic-gate traverse.c \ 517c478bd9Sstevel@tonic-gate util.c 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateCVTSRCS=$(GENSRCS) \ 547c478bd9Sstevel@tonic-gate ctfconvert.c \ 557c478bd9Sstevel@tonic-gate dwarf.c \ 567c478bd9Sstevel@tonic-gate stabs.c \ 57e824d57fSjohnlev fixup_tdescs.c \ 587c478bd9Sstevel@tonic-gate st_parse.c 597c478bd9Sstevel@tonic-gateCVTOBJS=$(CVTSRCS:%.c=%.o) 607c478bd9Sstevel@tonic-gateCVTLINTFILES = $(CVTSRCS:%.c=%.ln) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateMRGSRCS=$(GENSRCS) \ 637c478bd9Sstevel@tonic-gate ctfmerge.c 647c478bd9Sstevel@tonic-gateMRGOBJS=$(MRGSRCS:%.c=%.o) 657c478bd9Sstevel@tonic-gateMRGLINTFILES = $(MRGSRCS:%.c=%.ln) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateSRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS) 687c478bd9Sstevel@tonic-gateOBJS=$(SRCS:%.c=%.o) 697c478bd9Sstevel@tonic-gateLINTFILES=$(SRCS:%.c=%.ln) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateDWARFLDFLAGS = \ 7249d3bc91SRichard Lowe -L$(ROOTONBLDLIBMACH) \ 737c478bd9Sstevel@tonic-gate '-R$$ORIGIN/../../lib/$(MACH)' \ 747c478bd9Sstevel@tonic-gate -ldwarf 75*7fd79137SRobert MustacchiDWARFCPPFLAGS = -I$(SRC)/lib/libdwarf/common 767c478bd9Sstevel@tonic-gate 77494f7e12SKeith M WesolowskiLDFLAGS += -L$(NATIVE_ADJUNCT)/lib 787c478bd9Sstevel@tonic-gateLDLIBS += -lz -lelf 797c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 807c478bd9Sstevel@tonic-gateCFLAGS += $(CTF_FLAGS) 817c478bd9Sstevel@tonic-gateLINTFLAGS += -mnux 827c478bd9Sstevel@tonic-gate 837014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused 847014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 857014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 867014882cSRichard Lowe 877c478bd9Sstevel@tonic-gateC99MODE = $(C99_ENABLE) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gatectfconvert := LDFLAGS += $(DWARFLDFLAGS) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gatedwarf.o dwarf.ln := CPPFLAGS += $(DWARFCPPFLAGS) 92