diff options
Diffstat (limited to 'usr/src/tools/ctf/dwarf/Makefile.com')
| -rw-r--r-- | usr/src/tools/ctf/dwarf/Makefile.com | 87 |
1 files changed, 77 insertions, 10 deletions
diff --git a/usr/src/tools/ctf/dwarf/Makefile.com b/usr/src/tools/ctf/dwarf/Makefile.com index 9c8ab96b4e..fc3a5f38a9 100644 --- a/usr/src/tools/ctf/dwarf/Makefile.com +++ b/usr/src/tools/ctf/dwarf/Makefile.com @@ -2,25 +2,92 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" +# Copyright 2011, Richard Lowe. include ../../Makefile.ctf -.KEEP_STATE: -.PARALLEL: +LIBRARY= libdwarf.a +VERS= .1 + +OBJECTS= dwarf_abbrev.o \ + dwarf_addr_finder.o \ + dwarf_alloc.o \ + dwarf_arange.o \ + dwarf_die_deliv.o \ + dwarf_error.o \ + dwarf_form.o \ + dwarf_frame.o \ + dwarf_funcs.o \ + dwarf_global.o \ + dwarf_init_finish.o \ + dwarf_leb.o \ + dwarf_line.o \ + dwarf_loc.o \ + dwarf_macro.o \ + dwarf_print_lines.o \ + dwarf_query.o \ + dwarf_sort_line.o \ + dwarf_string.o \ + dwarf_stubs.o \ + dwarf_types.o \ + dwarf_util.o \ + dwarf_vars.o \ + dwarf_weaks.o \ + pro_alloc.o \ + pro_arange.o \ + pro_die.o \ + pro_encode_nm.o \ + pro_error.o \ + pro_expr.o \ + pro_finish.o \ + pro_forms.o \ + pro_frame.o \ + pro_funcs.o \ + pro_init.o \ + pro_line.o \ + pro_macinfo.o \ + pro_pubnames.o \ + pro_reloc.o \ + pro_reloc_stream.o \ + pro_reloc_symbolic.o \ + pro_section.o \ + pro_types.o \ + pro_vars.o \ + pro_weaks.o + -all: libdwarf.so +include $(SRC)/lib/Makefile.lib -install: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 +SRCS= $(PICS:%.o=../common/%.c) -clean clobber: - $(RM) libdwarf.so FILEMODE = 0755 -%.so: %.so.1 - -$(RM) $@ ; \ - $(SYMLINK) ./$< $@ +SRCDIR = ../common/ + +CPPFLAGS += -I$(SRCDIR) + +LDLIBS = -lelf -lc + +.KEEP_STATE: +.PARALLEL: + +all: $(DYNLIB) + +install: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so $(ROOTONBLDLIBMACH)/%: % $(INS.file) + +$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS) + $(INS.liblink) + +FRC: + +# We can't provide CTF information for libdwarf, as the CTF tools themselves +# depond upon it, and so aren't built yet. +$(DYNLIB) := CTFMERGE_POST= : +CTFCONVERT_O= : + +include $(SRC)/lib/Makefile.targ + |
