xref: /titanic_44/usr/src/tools/ctf/cvt/Makefile.com (revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510)
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 \
357c478bd9Sstevel@tonic-gate	barrier.c \
367c478bd9Sstevel@tonic-gate	ctf.c \
377c478bd9Sstevel@tonic-gate	fifo.c \
387c478bd9Sstevel@tonic-gate	hash.c \
397c478bd9Sstevel@tonic-gate	iidesc.c \
407c478bd9Sstevel@tonic-gate	input.c \
417c478bd9Sstevel@tonic-gate	list.c \
427c478bd9Sstevel@tonic-gate	memory.c \
437c478bd9Sstevel@tonic-gate	merge.c \
447c478bd9Sstevel@tonic-gate	output.c \
457c478bd9Sstevel@tonic-gate	stack.c \
467c478bd9Sstevel@tonic-gate	strtab.c \
477c478bd9Sstevel@tonic-gate	symbol.c \
487c478bd9Sstevel@tonic-gate	tdata.c \
497c478bd9Sstevel@tonic-gate	traverse.c \
507c478bd9Sstevel@tonic-gate	util.c
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateCVTSRCS=$(GENSRCS) \
537c478bd9Sstevel@tonic-gate	ctfconvert.c \
547c478bd9Sstevel@tonic-gate	dwarf.c \
557c478bd9Sstevel@tonic-gate	stabs.c \
56e824d57fSjohnlev	fixup_tdescs.c \
577c478bd9Sstevel@tonic-gate	st_parse.c
587c478bd9Sstevel@tonic-gateCVTOBJS=$(CVTSRCS:%.c=%.o)
597c478bd9Sstevel@tonic-gateCVTLINTFILES = $(CVTSRCS:%.c=%.ln)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateMRGSRCS=$(GENSRCS) \
627c478bd9Sstevel@tonic-gate	ctfmerge.c
637c478bd9Sstevel@tonic-gateMRGOBJS=$(MRGSRCS:%.c=%.o)
647c478bd9Sstevel@tonic-gateMRGLINTFILES = $(MRGSRCS:%.c=%.ln)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateSRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
677c478bd9Sstevel@tonic-gateOBJS=$(SRCS:%.c=%.o)
687c478bd9Sstevel@tonic-gateLINTFILES=$(SRCS:%.c=%.ln)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateDWARFLDFLAGS	= \
7149d3bc91SRichard Lowe	-L$(ROOTONBLDLIBMACH) \
727c478bd9Sstevel@tonic-gate	'-R$$ORIGIN/../../lib/$(MACH)' \
737c478bd9Sstevel@tonic-gate	-ldwarf
7449d3bc91SRichard LoweDWARFCPPFLAGS	= -I../../dwarf/common
757c478bd9Sstevel@tonic-gate
76*494f7e12SKeith M WesolowskiLDFLAGS		+= -L$(NATIVE_ADJUNCT)/lib
777c478bd9Sstevel@tonic-gateLDLIBS		+= -lz -lelf
787c478bd9Sstevel@tonic-gateCPPFLAGS	+= -D_REENTRANT
797c478bd9Sstevel@tonic-gateCFLAGS		+= $(CTF_FLAGS)
807c478bd9Sstevel@tonic-gateLINTFLAGS	+= -mnux
817c478bd9Sstevel@tonic-gate
827014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused
837014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
847014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
857014882cSRichard Lowe
867c478bd9Sstevel@tonic-gateC99MODE		= $(C99_ENABLE)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gatectfconvert	:= LDFLAGS += $(DWARFLDFLAGS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gatedwarf.o dwarf.ln	:= CPPFLAGS += $(DWARFCPPFLAGS)
91