Makefile revision 260684
1290001Sglebius# $Id: Makefile 2937 2013-04-27 04:48:23Z jkoshy $
2290001Sglebius
3290001SglebiusTOP=	${.CURDIR}/..
4290001Sglebius
5290001SglebiusLIB=	dwarf
6290001Sglebius
7290001SglebiusSRCS=	\
8290001Sglebius	dwarf_abbrev.c		\
9290001Sglebius	dwarf_arange.c		\
10290001Sglebius	dwarf_attr.c		\
11290001Sglebius	dwarf_attrval.c		\
12290001Sglebius	dwarf_cu.c		\
13290001Sglebius	dwarf_dealloc.c		\
14290001Sglebius	dwarf_die.c		\
15290001Sglebius	dwarf_dump.c		\
16290001Sglebius	dwarf_errmsg.c		\
17290001Sglebius	dwarf_finish.c		\
18290001Sglebius	dwarf_form.c		\
19290001Sglebius	dwarf_frame.c		\
20290001Sglebius	dwarf_funcs.c		\
21290001Sglebius	dwarf_init.c		\
22290001Sglebius	dwarf_lineno.c		\
23290001Sglebius	dwarf_loclist.c		\
24290001Sglebius	dwarf_macinfo.c		\
25290001Sglebius	dwarf_pro_arange.c	\
26290001Sglebius	dwarf_pro_attr.c	\
27290001Sglebius	dwarf_pro_die.c		\
28290001Sglebius	dwarf_pro_expr.c	\
29290001Sglebius	dwarf_pro_finish.c	\
30290001Sglebius	dwarf_pro_frame.c	\
31290001Sglebius	dwarf_pro_funcs.c	\
32290001Sglebius	dwarf_pro_init.c	\
33290001Sglebius	dwarf_pro_lineno.c	\
34290001Sglebius	dwarf_pro_macinfo.c	\
35290001Sglebius	dwarf_pro_pubnames.c	\
36290001Sglebius	dwarf_pro_reloc.c	\
37290001Sglebius	dwarf_pro_sections.c	\
38290001Sglebius	dwarf_pro_types.c	\
39290001Sglebius	dwarf_pro_vars.c	\
40290001Sglebius	dwarf_pro_weaks.c	\
41290001Sglebius	dwarf_pubnames.c	\
42290001Sglebius	dwarf_pubtypes.c	\
43290001Sglebius	dwarf_ranges.c		\
44290001Sglebius	dwarf_reloc.c		\
45290001Sglebius	dwarf_seterror.c	\
46290001Sglebius	dwarf_str.c		\
47290001Sglebius	dwarf_types.c		\
48290001Sglebius	dwarf_vars.c		\
49290001Sglebius	dwarf_weaks.c		\
50290001Sglebius	libdwarf.c		\
51290001Sglebius	libdwarf_abbrev.c	\
52290001Sglebius	libdwarf_arange.c	\
53290001Sglebius	libdwarf_attr.c		\
54290001Sglebius	libdwarf_die.c		\
55290001Sglebius	libdwarf_error.c	\
56290001Sglebius	libdwarf_elf_access.c	\
57290001Sglebius	libdwarf_elf_init.c	\
58290001Sglebius	libdwarf_frame.c	\
59290001Sglebius	libdwarf_info.c		\
60290001Sglebius	libdwarf_init.c		\
61290001Sglebius	libdwarf_lineno.c	\
62290001Sglebius	libdwarf_loc.c		\
63290001Sglebius	libdwarf_loclist.c	\
64290001Sglebius	libdwarf_macinfo.c	\
65290001Sglebius	libdwarf_nametbl.c	\
66290001Sglebius	libdwarf_ranges.c	\
67290001Sglebius	libdwarf_reloc.c	\
68290001Sglebius	libdwarf_rw.c		\
69290001Sglebius	libdwarf_sections.c	\
70290001Sglebius	libdwarf_str.c
71290001Sglebius
72290001SglebiusINCS=		dwarf.h libdwarf.h
73290001SglebiusINCSDIR=	/usr/include
74290001Sglebius
75290001SglebiusGENSRCS=	dwarf_pubnames.c dwarf_pubtypes.c dwarf_weaks.c \
76290001Sglebius		dwarf_funcs.c dwarf_vars.c dwarf_types.c	\
77290001Sglebius		dwarf_pro_pubnames.c dwarf_pro_weaks.c		\
78290001Sglebius		dwarf_pro_funcs.c dwarf_pro_types.c		\
79290001Sglebius		dwarf_pro_vars.c
80290001SglebiusCLEANFILES=	${GENSRCS}
81290001Sglebius
82290001SglebiusSHLIB_MAJOR=	3
83290001Sglebius
84290001SglebiusWARNS?=	6
85290001Sglebius
86290001SglebiusLDADD+=		-lelf
87290001Sglebius
88290001SglebiusMAN=	dwarf.3                                         \
89290001Sglebius	dwarf_add_arange.3				\
90290001Sglebius	dwarf_add_AT_comp_dir.3				\
91290001Sglebius	dwarf_add_AT_const_value_string.3		\
92290001Sglebius	dwarf_add_AT_dataref.3				\
93290001Sglebius	dwarf_add_AT_flag.3				\
94290001Sglebius	dwarf_add_AT_location_expr.3			\
95290001Sglebius	dwarf_add_AT_name.3				\
96290001Sglebius	dwarf_add_AT_producer.3				\
97290001Sglebius	dwarf_add_AT_ref_address.3			\
98290001Sglebius	dwarf_add_AT_reference.3			\
99290001Sglebius	dwarf_add_AT_signed_const.3			\
100290001Sglebius	dwarf_add_AT_string.3				\
101290001Sglebius	dwarf_add_AT_targ_address.3			\
102290001Sglebius	dwarf_add_die_to_debug.3			\
103290001Sglebius	dwarf_add_directory_decl.3			\
104290001Sglebius	dwarf_add_expr_addr.3				\
105290001Sglebius	dwarf_add_expr_gen.3				\
106290001Sglebius	dwarf_add_fde_inst.3				\
107290001Sglebius	dwarf_add_file_decl.3				\
108290001Sglebius	dwarf_add_frame_cie.3				\
109290001Sglebius	dwarf_add_frame_fde.3				\
110290001Sglebius	dwarf_add_funcname.3				\
111290001Sglebius	dwarf_add_line_entry.3				\
112290001Sglebius	dwarf_add_pubname.3				\
113290001Sglebius	dwarf_add_typename.3				\
114290001Sglebius	dwarf_add_varname.3				\
115290001Sglebius	dwarf_add_weakname.3				\
116301301Sdelphij	dwarf_attr.3					\
117301301Sdelphij	dwarf_attrlist.3				\
118301301Sdelphij	dwarf_attrval_signed.3				\
119290001Sglebius	dwarf_child.3					\
120290001Sglebius	dwarf_dealloc.3					\
121290001Sglebius	dwarf_def_macro.3				\
122290001Sglebius	dwarf_die_abbrev_code.3				\
123290001Sglebius	dwarf_die_link.3				\
124290001Sglebius	dwarf_diename.3					\
125290001Sglebius	dwarf_dieoffset.3				\
126290001Sglebius	dwarf_end_macro_file.3				\
127290001Sglebius	dwarf_errmsg.3					\
128290001Sglebius	dwarf_errno.3					\
129290001Sglebius	dwarf_expand_frame_instructions.3		\
130290001Sglebius	dwarf_expr_current_offset.3			\
131290001Sglebius	dwarf_expr_into_block.3				\
132290001Sglebius	dwarf_fde_cfa_offset.3				\
133290001Sglebius	dwarf_find_macro_value_start.3			\
134290001Sglebius	dwarf_finish.3					\
135290001Sglebius	dwarf_formaddr.3				\
136290001Sglebius	dwarf_formblock.3				\
137290001Sglebius	dwarf_formexprloc.3				\
138290001Sglebius	dwarf_formflag.3				\
139290001Sglebius	dwarf_formref.3					\
140290001Sglebius	dwarf_formsig8.3				\
141290001Sglebius	dwarf_formstring.3				\
142290001Sglebius	dwarf_formudata.3				\
143290001Sglebius	dwarf_get_abbrev.3				\
144290001Sglebius	dwarf_get_abbrev_children_flag.3		\
145290001Sglebius	dwarf_get_abbrev_code.3				\
146290001Sglebius	dwarf_get_abbrev_entry.3			\
147290001Sglebius	dwarf_get_abbrev_tag.3				\
148290001Sglebius	dwarf_get_address_size.3			\
149290001Sglebius	dwarf_get_arange.3				\
150290001Sglebius	dwarf_get_arange_info.3				\
151290001Sglebius	dwarf_get_aranges.3				\
152290001Sglebius	dwarf_get_AT_name.3				\
153290001Sglebius	dwarf_get_cie_index.3				\
154290001Sglebius	dwarf_get_cie_info.3				\
155290001Sglebius	dwarf_get_cie_of_fde.3				\
156290001Sglebius	dwarf_get_cu_die_offset.3			\
157290001Sglebius	dwarf_get_elf.3					\
158290001Sglebius	dwarf_get_fde_at_pc.3				\
159290001Sglebius	dwarf_get_fde_info_for_all_regs.3		\
160290001Sglebius	dwarf_get_fde_info_for_all_regs3.3		\
161290001Sglebius	dwarf_get_fde_info_for_cfa_reg3.3		\
162290001Sglebius	dwarf_get_fde_info_for_reg.3			\
163290001Sglebius	dwarf_get_fde_info_for_reg3.3			\
164290001Sglebius	dwarf_get_fde_instr_bytes.3			\
165290001Sglebius	dwarf_get_fde_list.3				\
166290001Sglebius	dwarf_get_fde_n.3				\
167290001Sglebius	dwarf_get_fde_range.3				\
168290001Sglebius	dwarf_get_form_class.3				\
169290001Sglebius	dwarf_get_funcs.3				\
170290001Sglebius	dwarf_get_globals.3				\
171290001Sglebius	dwarf_get_loclist_entry.3			\
172290001Sglebius	dwarf_get_macro_details.3			\
173290001Sglebius	dwarf_get_pubtypes.3				\
174290001Sglebius	dwarf_get_ranges.3				\
175290001Sglebius	dwarf_get_relocation_info.3			\
176290001Sglebius	dwarf_get_relocation_info_count.3		\
177290001Sglebius	dwarf_get_section_bytes.3			\
178290001Sglebius	dwarf_get_str.3					\
179290001Sglebius	dwarf_get_types.3				\
180290001Sglebius	dwarf_get_vars.3				\
181290001Sglebius	dwarf_get_weaks.3				\
182290001Sglebius	dwarf_hasattr.3					\
183290001Sglebius	dwarf_hasform.3					\
184290001Sglebius	dwarf_highpc.3					\
185290001Sglebius	dwarf_init.3					\
186290001Sglebius	dwarf_lineno.3					\
187290001Sglebius	dwarf_lne_end_sequence.3			\
188290001Sglebius	dwarf_lne_set_address.3				\
189290001Sglebius	dwarf_loclist.3					\
190290001Sglebius	dwarf_loclist_from_expr.3			\
191290001Sglebius	dwarf_new_die.3					\
192290001Sglebius	dwarf_new_expr.3				\
193290001Sglebius	dwarf_new_fde.3					\
194290001Sglebius	dwarf_next_cu_header.3				\
195290001Sglebius	dwarf_object_init.3				\
196290001Sglebius	dwarf_producer_init.3				\
197290001Sglebius	dwarf_producer_set_isa.3			\
198290001Sglebius	dwarf_reset_section_bytes.3			\
199290001Sglebius	dwarf_seterrarg.3				\
200290001Sglebius	dwarf_set_frame_cfa_value.3			\
201290001Sglebius	dwarf_set_reloc_application.3			\
202290001Sglebius	dwarf_srcfiles.3				\
203290001Sglebius	dwarf_srclines.3				\
204290001Sglebius	dwarf_start_macro_file.3			\
205290001Sglebius	dwarf_tag.3					\
206290001Sglebius	dwarf_transform_to_disk_form.3			\
207290001Sglebius	dwarf_undef_macro.3				\
208290001Sglebius	dwarf_vendor_ext.3				\
209290001Sglebius	dwarf_whatattr.3
210290001Sglebius
211290001SglebiusMLINKS+= \
212290001Sglebius	dwarf_add_AT_const_value_string.3 dwarf_add_AT_const_value_signedint.3 \
213290001Sglebius	dwarf_add_AT_const_value_string.3 dwarf_add_AT_const_value_unsignedint.3 \
214290001Sglebius	dwarf_add_AT_signed_const.3 dwarf_add_AT_unsigned_const.3 \
215290001Sglebius	dwarf_add_AT_targ_address.3 dwarf_add_AT_targ_address_b.3 \
216290001Sglebius	dwarf_add_arange.3	dwarf_add_arange_b.3	\
217290001Sglebius	dwarf_add_expr_addr.3	dwarf_add_expr_addr_b.3	\
218290001Sglebius	dwarf_add_frame_fde.3	dwarf_add_frame_fde_b.3	\
219290001Sglebius	dwarf_attrval_signed.3	dwarf_attrval_flag.3	\
220290001Sglebius	dwarf_attrval_signed.3	dwarf_attrval_string.3	\
221290001Sglebius	dwarf_attrval_signed.3	dwarf_attrval_unsigned.3 \
222290001Sglebius	dwarf_child.3	dwarf_offdie.3			\
223290001Sglebius	dwarf_child.3	dwarf_siblingof.3		\
224290001Sglebius	dwarf_dealloc.3	dwarf_fde_cie_list_dealloc.3	\
225290001Sglebius	dwarf_dealloc.3	dwarf_funcs_dealloc.3		\
226290001Sglebius	dwarf_dealloc.3	dwarf_globals_dealloc.3		\
227290001Sglebius	dwarf_dealloc.3	dwarf_pubtypes_dealloc.3	\
228290001Sglebius	dwarf_dealloc.3	dwarf_types_dealloc.3		\
229290001Sglebius	dwarf_dealloc.3	dwarf_vars_dealloc.3		\
230290001Sglebius	dwarf_dealloc.3	dwarf_weaks_dealloc.3		\
231290001Sglebius	dwarf_dealloc.3	dwarf_ranges_dealloc.3		\
232290001Sglebius	dwarf_dealloc.3	dwarf_srclines_dealloc.3	\
233290001Sglebius	dwarf_init.3	dwarf_elf_init.3		\
234290001Sglebius	dwarf_dieoffset.3	dwarf_die_CU_offset.3	\
235290001Sglebius	dwarf_dieoffset.3	dwarf_die_CU_offset_range.3 \
236290001Sglebius	dwarf_dieoffset.3	dwarf_get_cu_die_offset_given_cu_header_offset.3 \
237290001Sglebius	dwarf_finish.3		dwarf_object_finish.3	\
238290001Sglebius	dwarf_formref.3	dwarf_global_formref.3		\
239290001Sglebius	dwarf_formudata.3	dwarf_formsdata.3	\
240290001Sglebius	dwarf_get_AT_name.3	dwarf_get_ACCESS_name.3	\
241290001Sglebius	dwarf_get_AT_name.3	dwarf_get_ATE_name.3	\
242290001Sglebius	dwarf_get_AT_name.3	dwarf_get_CC_name.3	\
243290001Sglebius	dwarf_get_AT_name.3	dwarf_get_CFA_name.3	\
244290001Sglebius	dwarf_get_AT_name.3	dwarf_get_CHILDREN_name.3 \
245290001Sglebius	dwarf_get_AT_name.3	dwarf_get_DS_name.3	\
246290001Sglebius	dwarf_get_AT_name.3	dwarf_get_DSC_name.3	\
247290001Sglebius	dwarf_get_AT_name.3	dwarf_get_EH_name.3	\
248290001Sglebius	dwarf_get_AT_name.3	dwarf_get_END_name.3	\
249290001Sglebius	dwarf_get_AT_name.3	dwarf_get_FORM_name.3	\
250290001Sglebius	dwarf_get_AT_name.3	dwarf_get_ID_name.3	\
251290001Sglebius	dwarf_get_AT_name.3	dwarf_get_INL_name.3	\
252290001Sglebius	dwarf_get_AT_name.3	dwarf_get_LANG_name.3	\
253290001Sglebius	dwarf_get_AT_name.3	dwarf_get_LNE_name.3	\
254290001Sglebius	dwarf_get_AT_name.3	dwarf_get_LNS_name.3	\
255290001Sglebius	dwarf_get_AT_name.3	dwarf_get_MACINFO_name.3 \
256290001Sglebius	dwarf_get_AT_name.3	dwarf_get_OP_name.3	\
257290001Sglebius	dwarf_get_AT_name.3	dwarf_get_ORD_name.3	\
258290001Sglebius	dwarf_get_AT_name.3	dwarf_get_TAG_name.3	\
259290001Sglebius	dwarf_get_AT_name.3	dwarf_get_VIRTUALITY_name.3 \
260290001Sglebius	dwarf_get_AT_name.3	dwarf_get_VIS_name.3	\
261290001Sglebius	dwarf_get_cu_die_offset.3 dwarf_get_arange_cu_header_offset.3 \
262290001Sglebius	dwarf_get_fde_list.3	dwarf_get_fde_list_eh.3	\
263290001Sglebius	dwarf_get_funcs.3	dwarf_func_die_offset.3	\
264290001Sglebius	dwarf_get_funcs.3	dwarf_func_cu_offset.3	\
265290001Sglebius	dwarf_get_funcs.3	dwarf_func_name_offsets.3 \
266290001Sglebius	dwarf_get_funcs.3	dwarf_funcname.3	\
267290001Sglebius	dwarf_get_globals.3	dwarf_global_die_offset.3 \
268290001Sglebius	dwarf_get_globals.3	dwarf_global_cu_offset.3 \
269290001Sglebius	dwarf_get_globals.3	dwarf_global_name_offsets.3 \
270290001Sglebius	dwarf_get_globals.3	dwarf_globname.3	\
271290001Sglebius	dwarf_get_pubtypes.3	dwarf_pubtype_die_offset.3 \
272290001Sglebius	dwarf_get_pubtypes.3	dwarf_pubtype_cu_offset.3 \
273290001Sglebius	dwarf_get_pubtypes.3	dwarf_pubtype_name_offsets.3 \
274290001Sglebius	dwarf_get_pubtypes.3	dwarf_pubtypename.3	\
275290001Sglebius	dwarf_get_ranges.3	dwarf_get_ranges_a.3	\
276290001Sglebius	dwarf_get_types.3	dwarf_type_die_offset.3	\
277290001Sglebius	dwarf_get_types.3	dwarf_type_cu_offset.3	\
278290001Sglebius	dwarf_get_types.3	dwarf_type_name_offsets.3 \
279290001Sglebius	dwarf_get_types.3	dwarf_typename.3	\
280290001Sglebius	dwarf_get_vars.3	dwarf_var_die_offset.3	\
281290001Sglebius	dwarf_get_vars.3	dwarf_var_cu_offset.3	\
282290001Sglebius	dwarf_get_vars.3	dwarf_var_name_offsets.3 \
283290001Sglebius	dwarf_get_vars.3	dwarf_varname.3		\
284290001Sglebius	dwarf_get_weaks.3	dwarf_weak_die_offset.3	\
285290001Sglebius	dwarf_get_weaks.3	dwarf_weak_cu_offset.3	\
286290001Sglebius	dwarf_get_weaks.3	dwarf_weak_name_offsets.3 \
287290001Sglebius	dwarf_get_weaks.3	dwarf_weakname.3	\
288290001Sglebius	dwarf_hasform.3	dwarf_whatform.3		\
289290001Sglebius	dwarf_hasform.3	dwarf_whatform_direct.3		\
290290001Sglebius	dwarf_highpc.3	dwarf_arrayorder.3		\
291290001Sglebius	dwarf_highpc.3	dwarf_bitoffset.3		\
292290001Sglebius	dwarf_highpc.3	dwarf_bitsize.3			\
293290001Sglebius	dwarf_highpc.3	dwarf_bytesize.3		\
294290001Sglebius	dwarf_highpc.3	dwarf_lowpc.3			\
295290001Sglebius	dwarf_highpc.3	dwarf_srclang.3			\
296290001Sglebius	dwarf_lineno.3	dwarf_lineaddr.3		\
297290001Sglebius	dwarf_lineno.3	dwarf_linebeginstatement.3	\
298290001Sglebius	dwarf_lineno.3	dwarf_lineblock.3		\
299290001Sglebius	dwarf_lineno.3	dwarf_lineendsequence.3		\
300290001Sglebius	dwarf_lineno.3	dwarf_lineoff.3			\
301290001Sglebius	dwarf_lineno.3	dwarf_linesrc.3			\
302290001Sglebius	dwarf_lineno.3	dwarf_line_srcfileno.3		\
303290001Sglebius	dwarf_loclist.3	dwarf_loclist_n.3		\
304290001Sglebius	dwarf_loclist_from_expr.3 dwarf_loclist_from_expr_a.3 \
305290001Sglebius	dwarf_producer_init.3 dwarf_producer_init_b.3	\
306290001Sglebius	dwarf_seterrarg.3	dwarf_seterrhand.3	\
307290001Sglebius	dwarf_set_frame_cfa_value.3 dwarf_set_frame_rule_initial_value.3 \
308290001Sglebius	dwarf_set_frame_cfa_value.3 dwarf_set_frame_rule_table_size.3 \
309290001Sglebius	dwarf_set_frame_cfa_value.3 dwarf_set_frame_same_value.3 \
310290001Sglebius	dwarf_set_frame_cfa_value.3 dwarf_set_frame_undefined_value.3
311290001Sglebius
312290001Sglebiusdwarf_pubnames.c:	dwarf_nametbl.m4 dwarf_pubnames.m4
313290001Sglebiusdwarf_pubtypes.c:	dwarf_nametbl.m4 dwarf_pubtypes.m4
314290001Sglebiusdwarf_weaks.c:		dwarf_nametbl.m4 dwarf_weaks.m4
315290001Sglebiusdwarf_funcs.c:		dwarf_nametbl.m4 dwarf_funcs.m4
316290001Sglebiusdwarf_vars.c:		dwarf_nametbl.m4 dwarf_vars.m4
317290001Sglebiusdwarf_types.c:		dwarf_nametbl.m4 dwarf_types.m4
318290001Sglebiusdwarf_pro_pubnames.c:	dwarf_pro_nametbl.m4 dwarf_pro_pubnames.m4
319290001Sglebiusdwarf_pro_weaks.c:	dwarf_pro_nametbl.m4 dwarf_pro_weaks.m4
320290001Sglebiusdwarf_pro_funcs.c:	dwarf_pro_nametbl.m4 dwarf_pro_funcs.m4
321290001Sglebiusdwarf_pro_types.c:	dwarf_pro_nametbl.m4 dwarf_pro_types.m4
322290001Sglebiusdwarf_pro_vars.c:	dwarf_pro_nametbl.m4 dwarf_pro_vars.m4
323290001Sglebius
324290001Sglebius.include "${TOP}/mk/elftoolchain.lib.mk"
325290001Sglebius