xref: /titanic_53/usr/src/tools/ctf/cvt/Makefile.com (revision e824d57f8160a27ac5e650005c7a4f037109c2be)
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
5*e824d57fSjohnlev# Common Development and Distribution License (the "License").
6*e824d57fSjohnlev# 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#
22*e824d57fSjohnlev# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateinclude ../../Makefile.ctf
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate.KEEP_STATE:
307c478bd9Sstevel@tonic-gate.PARALLEL:
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gatePROG=ctfconvert ctfmerge
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateGENSRCS= \
357c478bd9Sstevel@tonic-gate	alist.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 \
57*e824d57fSjohnlev	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-gateDWARFSRCLIBDIR	= ../../dwarf
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateDWARFLDFLAGS	= \
747c478bd9Sstevel@tonic-gate	-L$(DWARFSRCLIBDIR)/$(MACH) \
757c478bd9Sstevel@tonic-gate	'-R$$ORIGIN/../../lib/$(MACH)' \
767c478bd9Sstevel@tonic-gate	-ldwarf
777c478bd9Sstevel@tonic-gateDWARFCPPFLAGS	= -I$(DWARFSRCLIBDIR)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateLDLIBS		+= -lz -lelf
807c478bd9Sstevel@tonic-gateCPPFLAGS	+= -D_REENTRANT
817c478bd9Sstevel@tonic-gateCFLAGS		+= $(CTF_FLAGS)
827c478bd9Sstevel@tonic-gateLINTFLAGS	+= -mnux
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateC99MODE		= $(C99_ENABLE)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gatectfconvert	:= LDFLAGS += $(DWARFLDFLAGS)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gatedwarf.o dwarf.ln	:= CPPFLAGS += $(DWARFCPPFLAGS)
89