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