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# 5*49d3bc91SRichard Lowe# Copyright 2011, Richard Lowe. 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gateinclude ../../Makefile.ctf 87c478bd9Sstevel@tonic-gate 9*49d3bc91SRichard LoweLIBRARY= libdwarf.a 10*49d3bc91SRichard LoweVERS= .1 11*49d3bc91SRichard Lowe 12*49d3bc91SRichard LoweOBJECTS= dwarf_abbrev.o \ 13*49d3bc91SRichard Lowe dwarf_addr_finder.o \ 14*49d3bc91SRichard Lowe dwarf_alloc.o \ 15*49d3bc91SRichard Lowe dwarf_arange.o \ 16*49d3bc91SRichard Lowe dwarf_die_deliv.o \ 17*49d3bc91SRichard Lowe dwarf_error.o \ 18*49d3bc91SRichard Lowe dwarf_form.o \ 19*49d3bc91SRichard Lowe dwarf_frame.o \ 20*49d3bc91SRichard Lowe dwarf_funcs.o \ 21*49d3bc91SRichard Lowe dwarf_global.o \ 22*49d3bc91SRichard Lowe dwarf_init_finish.o \ 23*49d3bc91SRichard Lowe dwarf_leb.o \ 24*49d3bc91SRichard Lowe dwarf_line.o \ 25*49d3bc91SRichard Lowe dwarf_loc.o \ 26*49d3bc91SRichard Lowe dwarf_macro.o \ 27*49d3bc91SRichard Lowe dwarf_print_lines.o \ 28*49d3bc91SRichard Lowe dwarf_query.o \ 29*49d3bc91SRichard Lowe dwarf_sort_line.o \ 30*49d3bc91SRichard Lowe dwarf_string.o \ 31*49d3bc91SRichard Lowe dwarf_stubs.o \ 32*49d3bc91SRichard Lowe dwarf_types.o \ 33*49d3bc91SRichard Lowe dwarf_util.o \ 34*49d3bc91SRichard Lowe dwarf_vars.o \ 35*49d3bc91SRichard Lowe dwarf_weaks.o \ 36*49d3bc91SRichard Lowe pro_alloc.o \ 37*49d3bc91SRichard Lowe pro_arange.o \ 38*49d3bc91SRichard Lowe pro_die.o \ 39*49d3bc91SRichard Lowe pro_encode_nm.o \ 40*49d3bc91SRichard Lowe pro_error.o \ 41*49d3bc91SRichard Lowe pro_expr.o \ 42*49d3bc91SRichard Lowe pro_finish.o \ 43*49d3bc91SRichard Lowe pro_forms.o \ 44*49d3bc91SRichard Lowe pro_frame.o \ 45*49d3bc91SRichard Lowe pro_funcs.o \ 46*49d3bc91SRichard Lowe pro_init.o \ 47*49d3bc91SRichard Lowe pro_line.o \ 48*49d3bc91SRichard Lowe pro_macinfo.o \ 49*49d3bc91SRichard Lowe pro_pubnames.o \ 50*49d3bc91SRichard Lowe pro_reloc.o \ 51*49d3bc91SRichard Lowe pro_reloc_stream.o \ 52*49d3bc91SRichard Lowe pro_reloc_symbolic.o \ 53*49d3bc91SRichard Lowe pro_section.o \ 54*49d3bc91SRichard Lowe pro_types.o \ 55*49d3bc91SRichard Lowe pro_vars.o \ 56*49d3bc91SRichard Lowe pro_weaks.o 57*49d3bc91SRichard Lowe 58*49d3bc91SRichard Lowe 59*49d3bc91SRichard Loweinclude $(SRC)/lib/Makefile.lib 60*49d3bc91SRichard Lowe 61*49d3bc91SRichard LoweSRCS= $(PICS:%.o=../common/%.c) 62*49d3bc91SRichard Lowe 63*49d3bc91SRichard Lowe 64*49d3bc91SRichard LoweFILEMODE = 0755 65*49d3bc91SRichard Lowe 66*49d3bc91SRichard LoweSRCDIR = ../common/ 67*49d3bc91SRichard Lowe 68*49d3bc91SRichard LoweCPPFLAGS += -I$(SRCDIR) 69*49d3bc91SRichard Lowe 70*49d3bc91SRichard LoweLDLIBS = -lelf -lc 71*49d3bc91SRichard Lowe 727c478bd9Sstevel@tonic-gate.KEEP_STATE: 737c478bd9Sstevel@tonic-gate.PARALLEL: 747c478bd9Sstevel@tonic-gate 75*49d3bc91SRichard Loweall: $(DYNLIB) 767c478bd9Sstevel@tonic-gate 77*49d3bc91SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate$(ROOTONBLDLIBMACH)/%: % 807c478bd9Sstevel@tonic-gate $(INS.file) 81*49d3bc91SRichard Lowe 82*49d3bc91SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS) 83*49d3bc91SRichard Lowe $(INS.liblink) 84*49d3bc91SRichard Lowe 85*49d3bc91SRichard LoweFRC: 86*49d3bc91SRichard Lowe 87*49d3bc91SRichard Lowe# We can't provide CTF information for libdwarf, as the CTF tools themselves 88*49d3bc91SRichard Lowe# depond upon it, and so aren't built yet. 89*49d3bc91SRichard Lowe$(DYNLIB) := CTFMERGE_POST= : 90*49d3bc91SRichard LoweCTFCONVERT_O= : 91*49d3bc91SRichard Lowe 92*49d3bc91SRichard Loweinclude $(SRC)/lib/Makefile.targ 93*49d3bc91SRichard Lowe 94