xref: /titanic_41/usr/src/tools/ctf/cvt/Makefile.com (revision 734b6a94890be549309b21156f8ed6d4561cac51)
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 2005 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
30.KEEP_STATE:
31.PARALLEL:
32
33PROG=ctfconvert ctfmerge
34
35GENSRCS= \
36	alist.c \
37	barrier.c \
38	ctf.c \
39	fifo.c \
40	hash.c \
41	iidesc.c \
42	input.c \
43	list.c \
44	memory.c \
45	merge.c \
46	output.c \
47	stack.c \
48	strtab.c \
49	symbol.c \
50	tdata.c \
51	traverse.c \
52	util.c
53
54CVTSRCS=$(GENSRCS) \
55	ctfconvert.c \
56	dwarf.c \
57	stabs.c \
58	st_bugs.c \
59	st_parse.c
60CVTOBJS=$(CVTSRCS:%.c=%.o)
61CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
62
63MRGSRCS=$(GENSRCS) \
64	ctfmerge.c
65MRGOBJS=$(MRGSRCS:%.c=%.o)
66MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
67
68SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
69OBJS=$(SRCS:%.c=%.o)
70LINTFILES=$(SRCS:%.c=%.ln)
71
72DWARFSRCLIBDIR	= ../../dwarf
73
74DWARFLDFLAGS	= \
75	-L$(DWARFSRCLIBDIR)/$(MACH) \
76	'-R$$ORIGIN/../../lib/$(MACH)' \
77	-ldwarf
78DWARFCPPFLAGS	= -I$(DWARFSRCLIBDIR)
79
80LDLIBS		+= -lz -lelf
81CPPFLAGS	+= -D_REENTRANT
82CFLAGS		+= $(CTF_FLAGS)
83LINTFLAGS	+= -mnux
84
85C99MODE		= $(C99_ENABLE)
86
87ctfconvert	:= LDFLAGS += $(DWARFLDFLAGS)
88
89dwarf.o dwarf.ln	:= CPPFLAGS += $(DWARFCPPFLAGS)
90