xref: /titanic_52/usr/src/tools/ctf/cvt/Makefile.com (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27
28include ../../Makefile.ctf
29
30STRIPFLAG=
31
32.KEEP_STATE:
33.PARALLEL:
34
35PROG=ctfconvert ctfmerge
36
37GENSRCS= \
38	alist.c \
39	barrier.c \
40	ctf.c \
41	fifo.c \
42	hash.c \
43	iidesc.c \
44	input.c \
45	list.c \
46	memory.c \
47	merge.c \
48	output.c \
49	stack.c \
50	strtab.c \
51	symbol.c \
52	tdata.c \
53	traverse.c \
54	util.c
55
56CVTSRCS=$(GENSRCS) \
57	ctfconvert.c \
58	dwarf.c \
59	stabs.c \
60	st_bugs.c \
61	st_parse.c
62CVTOBJS=$(CVTSRCS:%.c=%.o)
63CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
64
65MRGSRCS=$(GENSRCS) \
66	ctfmerge.c
67MRGOBJS=$(MRGSRCS:%.c=%.o)
68MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
69
70SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
71OBJS=$(SRCS:%.c=%.o)
72LINTFILES=$(SRCS:%.c=%.ln)
73
74DWARFSRCLIBDIR	= ../../dwarf
75
76DWARFLDFLAGS	= \
77	-L$(DWARFSRCLIBDIR)/$(MACH) \
78	'-R$$ORIGIN/../../lib/$(MACH)' \
79	-ldwarf
80DWARFCPPFLAGS	= -I$(DWARFSRCLIBDIR)
81
82LDLIBS		+= -lz -lelf
83CPPFLAGS	+= -D_REENTRANT
84CFLAGS		+= $(CTF_FLAGS)
85LINTFLAGS	+= -mnux
86
87C99MODE		= $(C99_ENABLE)
88
89ctfconvert	:= LDFLAGS += $(DWARFLDFLAGS)
90
91dwarf.o dwarf.ln	:= CPPFLAGS += $(DWARFCPPFLAGS)
92