# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Copyright 2011, Richard Lowe. include ../../Makefile.ctf 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 include $(SRC)/lib/Makefile.lib SRCS= $(PICS:%.o=../common/%.c) FILEMODE = 0755 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