xref: /titanic_50/usr/src/tools/ctf/dwarf/Makefile.com (revision f3e7f55e73a39377d55a030f124cc86b3b66a9cc)
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_elf_access.o	\
18	dwarf_error.o		\
19	dwarf_form.o		\
20	dwarf_frame.o		\
21	dwarf_frame2.o		\
22	dwarf_frame3.o		\
23	dwarf_funcs.o		\
24	dwarf_global.o		\
25	dwarf_harmless.o	\
26	dwarf_init_finish.o	\
27	dwarf_leb.o		\
28	dwarf_line.o		\
29	dwarf_line2.o		\
30	dwarf_loc.o		\
31	dwarf_macro.o		\
32	dwarf_names.o		\
33	dwarf_original_elf_init.o	\
34	dwarf_print_lines.o	\
35	dwarf_pubtypes.o	\
36	dwarf_query.o		\
37	dwarf_ranges.o		\
38	dwarf_sort_line.o	\
39	dwarf_string.o		\
40	dwarf_stubs.o		\
41	dwarf_types.o		\
42	dwarf_util.o		\
43	dwarf_vars.o		\
44	dwarf_weaks.o		\
45	malloc_check.o		\
46	pro_alloc.o		\
47	pro_arange.o		\
48	pro_die.o		\
49	pro_encode_nm.o		\
50	pro_error.o		\
51	pro_expr.o		\
52	pro_finish.o		\
53	pro_forms.o		\
54	pro_frame.o		\
55	pro_funcs.o		\
56	pro_init.o		\
57	pro_line.o		\
58	pro_macinfo.o		\
59	pro_pubnames.o		\
60	pro_reloc.o		\
61	pro_reloc_stream.o	\
62	pro_reloc_symbolic.o	\
63	pro_section.o		\
64	pro_types.o		\
65	pro_vars.o		\
66	pro_weaks.o
67
68include $(SRC)/lib/Makefile.lib
69
70
71FILEMODE =	0755
72SRCDIR =	$(SRC)/lib/libdwarf/common/
73SRCS =		$(PICS:%.o=$(SRCDIR)/%.c)
74
75CPPFLAGS +=	-I$(SRCDIR) -DELF_TARGET_ALL=1
76CERRWARN +=	-_gcc=-Wno-unused
77CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
78
79LDLIBS = -lelf -lc
80
81.KEEP_STATE:
82.PARALLEL:
83
84all:	$(DYNLIB)
85
86install: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so
87
88$(ROOTONBLDLIBMACH)/%: %
89	$(INS.file)
90
91$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS)
92	$(INS.liblink)
93
94FRC:
95
96# We can't provide CTF information for libdwarf, as the CTF tools themselves
97# depond upon it, and so aren't built yet.
98$(DYNLIB) := CTFMERGE_POST= :
99CTFCONVERT_O= :
100
101include $(SRC)/lib/Makefile.targ
102
103