17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 549d3bc91SRichard Lowe# Copyright 2011, Richard Lowe. 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gateinclude ../../Makefile.ctf 87c478bd9Sstevel@tonic-gate 949d3bc91SRichard LoweLIBRARY= libdwarf.a 1049d3bc91SRichard LoweVERS= .1 1149d3bc91SRichard Lowe 1249d3bc91SRichard LoweOBJECTS=dwarf_abbrev.o \ 1349d3bc91SRichard Lowe dwarf_addr_finder.o \ 1449d3bc91SRichard Lowe dwarf_alloc.o \ 1549d3bc91SRichard Lowe dwarf_arange.o \ 1649d3bc91SRichard Lowe dwarf_die_deliv.o \ 1707dc1947SRichard Lowe dwarf_elf_access.o \ 1849d3bc91SRichard Lowe dwarf_error.o \ 1949d3bc91SRichard Lowe dwarf_form.o \ 2049d3bc91SRichard Lowe dwarf_frame.o \ 2107dc1947SRichard Lowe dwarf_frame2.o \ 2207dc1947SRichard Lowe dwarf_frame3.o \ 2349d3bc91SRichard Lowe dwarf_funcs.o \ 2449d3bc91SRichard Lowe dwarf_global.o \ 2507dc1947SRichard Lowe dwarf_harmless.o \ 2649d3bc91SRichard Lowe dwarf_init_finish.o \ 2749d3bc91SRichard Lowe dwarf_leb.o \ 2849d3bc91SRichard Lowe dwarf_line.o \ 2907dc1947SRichard Lowe dwarf_line2.o \ 3049d3bc91SRichard Lowe dwarf_loc.o \ 3149d3bc91SRichard Lowe dwarf_macro.o \ 3207dc1947SRichard Lowe dwarf_names.o \ 3307dc1947SRichard Lowe dwarf_original_elf_init.o \ 3449d3bc91SRichard Lowe dwarf_print_lines.o \ 3507dc1947SRichard Lowe dwarf_pubtypes.o \ 3649d3bc91SRichard Lowe dwarf_query.o \ 3707dc1947SRichard Lowe dwarf_ranges.o \ 3849d3bc91SRichard Lowe dwarf_sort_line.o \ 3949d3bc91SRichard Lowe dwarf_string.o \ 4049d3bc91SRichard Lowe dwarf_stubs.o \ 4149d3bc91SRichard Lowe dwarf_types.o \ 4249d3bc91SRichard Lowe dwarf_util.o \ 4349d3bc91SRichard Lowe dwarf_vars.o \ 4449d3bc91SRichard Lowe dwarf_weaks.o \ 4507dc1947SRichard Lowe malloc_check.o \ 4649d3bc91SRichard Lowe pro_alloc.o \ 4749d3bc91SRichard Lowe pro_arange.o \ 4849d3bc91SRichard Lowe pro_die.o \ 4949d3bc91SRichard Lowe pro_encode_nm.o \ 5049d3bc91SRichard Lowe pro_error.o \ 5149d3bc91SRichard Lowe pro_expr.o \ 5249d3bc91SRichard Lowe pro_finish.o \ 5349d3bc91SRichard Lowe pro_forms.o \ 5449d3bc91SRichard Lowe pro_frame.o \ 5549d3bc91SRichard Lowe pro_funcs.o \ 5649d3bc91SRichard Lowe pro_init.o \ 5749d3bc91SRichard Lowe pro_line.o \ 5849d3bc91SRichard Lowe pro_macinfo.o \ 5949d3bc91SRichard Lowe pro_pubnames.o \ 6049d3bc91SRichard Lowe pro_reloc.o \ 6149d3bc91SRichard Lowe pro_reloc_stream.o \ 6249d3bc91SRichard Lowe pro_reloc_symbolic.o \ 6349d3bc91SRichard Lowe pro_section.o \ 6449d3bc91SRichard Lowe pro_types.o \ 6549d3bc91SRichard Lowe pro_vars.o \ 6649d3bc91SRichard Lowe pro_weaks.o 6749d3bc91SRichard Lowe 6849d3bc91SRichard Loweinclude $(SRC)/lib/Makefile.lib 6949d3bc91SRichard Lowe 7049d3bc91SRichard Lowe 7149d3bc91SRichard LoweFILEMODE = 0755 72*7fd79137SRobert MustacchiSRCDIR = $(SRC)/lib/libdwarf/common/ 73*7fd79137SRobert MustacchiSRCS = $(PICS:%.o=$(SRCDIR)/%.c) 7449d3bc91SRichard Lowe 7507dc1947SRichard LoweCPPFLAGS += -I$(SRCDIR) -DELF_TARGET_ALL=1 767014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused 777014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 7849d3bc91SRichard Lowe 7949d3bc91SRichard LoweLDLIBS = -lelf -lc 8049d3bc91SRichard Lowe 817c478bd9Sstevel@tonic-gate.KEEP_STATE: 827c478bd9Sstevel@tonic-gate.PARALLEL: 837c478bd9Sstevel@tonic-gate 8449d3bc91SRichard Loweall: $(DYNLIB) 857c478bd9Sstevel@tonic-gate 8649d3bc91SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate$(ROOTONBLDLIBMACH)/%: % 897c478bd9Sstevel@tonic-gate $(INS.file) 9049d3bc91SRichard Lowe 9149d3bc91SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS) 9249d3bc91SRichard Lowe $(INS.liblink) 9349d3bc91SRichard Lowe 9449d3bc91SRichard LoweFRC: 9549d3bc91SRichard Lowe 9649d3bc91SRichard Lowe# We can't provide CTF information for libdwarf, as the CTF tools themselves 9749d3bc91SRichard Lowe# depond upon it, and so aren't built yet. 9849d3bc91SRichard Lowe$(DYNLIB) := CTFMERGE_POST= : 9949d3bc91SRichard LoweCTFCONVERT_O= : 10049d3bc91SRichard Lowe 10149d3bc91SRichard Loweinclude $(SRC)/lib/Makefile.targ 10249d3bc91SRichard Lowe 103