xref: /titanic_50/usr/src/tools/ctf/dwarf/Makefile.com (revision ead9bb4b1be81d7bbf8ed86ee41d6c1e58b069a3)
1#
2# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# Copyright 2011, Richard Lowe.
6
7include ../../Makefile.ctf
8
9LIBRARY=	libdwarf.a
10VERS=		.1
11
12OBJECTS=	dwarf_abbrev.o		\
13	dwarf_addr_finder.o	\
14	dwarf_alloc.o		\
15	dwarf_arange.o		\
16	dwarf_die_deliv.o	\
17	dwarf_error.o		\
18	dwarf_form.o		\
19	dwarf_frame.o		\
20	dwarf_funcs.o		\
21	dwarf_global.o		\
22	dwarf_init_finish.o	\
23	dwarf_leb.o		\
24	dwarf_line.o		\
25	dwarf_loc.o		\
26	dwarf_macro.o		\
27	dwarf_print_lines.o	\
28	dwarf_query.o		\
29	dwarf_sort_line.o	\
30	dwarf_string.o		\
31	dwarf_stubs.o		\
32	dwarf_types.o		\
33	dwarf_util.o		\
34	dwarf_vars.o		\
35	dwarf_weaks.o		\
36	pro_alloc.o		\
37	pro_arange.o		\
38	pro_die.o		\
39	pro_encode_nm.o		\
40	pro_error.o		\
41	pro_expr.o		\
42	pro_finish.o		\
43	pro_forms.o		\
44	pro_frame.o		\
45	pro_funcs.o		\
46	pro_init.o		\
47	pro_line.o		\
48	pro_macinfo.o		\
49	pro_pubnames.o		\
50	pro_reloc.o		\
51	pro_reloc_stream.o	\
52	pro_reloc_symbolic.o	\
53	pro_section.o		\
54	pro_types.o		\
55	pro_vars.o		\
56	pro_weaks.o
57
58
59include $(SRC)/lib/Makefile.lib
60
61SRCS=	$(PICS:%.o=../common/%.c)
62
63
64FILEMODE	= 0755
65
66SRCDIR = ../common/
67
68CPPFLAGS +=	-I$(SRCDIR)
69
70LDLIBS = -lelf -lc
71
72.KEEP_STATE:
73.PARALLEL:
74
75all:	$(DYNLIB)
76
77install: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so
78
79$(ROOTONBLDLIBMACH)/%: %
80	$(INS.file)
81
82$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS)
83	$(INS.liblink)
84
85FRC:
86
87# We can't provide CTF information for libdwarf, as the CTF tools themselves
88# depond upon it, and so aren't built yet.
89$(DYNLIB) := CTFMERGE_POST= :
90CTFCONVERT_O= :
91
92include $(SRC)/lib/Makefile.targ
93
94