File: Makefile.am

package info (click to toggle)
dwarfutils 20180809-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,228 kB
  • sloc: ansic: 63,382; sh: 5,222; cpp: 4,041; makefile: 548; python: 445; awk: 11
file content (240 lines) | stat: -rw-r--r-- 5,060 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
###Copyright (C) 2018 Vincent Torri <vincent dot torri at gmail dot com
###This code is public domain and can be freely used or copied.

MAINTAINERCLEANFILES = Makefile.in

noinst_PROGRAMS = gennames errmsg_check

### gennames

gennames_SOURCES = \
gennames.c \
dwgetopt.c \
dwgetopt.h

gennames_CFLAGS = -I$(top_builddir)/libdwarf -I$(top_builddir) -I$(top_srcdir)/libdwarf

BUILT_SOURCES = \
dwarf_names.c

gn_verbose = $(gn_verbose_@AM_V@)
gn_verbose_ = $(gn_verbose_@AM_DEFAULT_V@)
gn_verbose_0 = @echo "  GEN     " $@;

cc_verbose = $(cc_verbose_@AM_V@)
cc_verbose_ = $(cc_verbose_@AM_DEFAULT_V@)
cc_verbose_0 = @echo "  CC     " $@;

dwarf_names.h: dwarf_names.c
dwarf_names.c: gennames$(BUILD_EXEEXT)
	$(AM_V_at)rm -f dwarf_names.c dwarf_names.h dwarf_names_enum.h dwarf_names_new.h
	$(gn_verbose)./gennames$(BUILD_EXEEXT) @dwarf_namestable@ -i $(srcdir) -o .

gennames$(BUILD_EXEEXT): $(top_srcdir)/libdwarf/gennames.c $(top_srcdir)/libdwarf/dwgetopt.c $(top_srcdir)/libdwarf/dwgetopt.h
	$(cc_verbose)$(CC_FOR_BUILD) $(gennames_CFLAGS) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(top_srcdir)/libdwarf/gennames.c $(top_srcdir)/libdwarf/dwgetopt.c -o $@ $(LDFLAGS_FOR_BUILD)

### errmsg_check

errmsg_check_SOURCES = \
dwarf_test_errmsg_list.c \
dwarf_errmsg_list.h

# config.h is in top_builddir  
errmsg_check_CFLAGS = -I$(top_builddir)/libdwarf -I$(top_builddir) -I$(top_srcdir)/libdwarf

BUILT_SOURCES += \
errmsg_check_list

errmsg_check$(BUILD_EXEEXT): $(top_srcdir)/libdwarf/dwarf_test_errmsg_list.c $(top_srcdir)/libdwarf/dwarf_errmsg_list.h
	$(CC_FOR_BUILD) $(errmsg_check_CFLAGS) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(top_srcdir)/libdwarf/dwarf_test_errmsg_list.c  -o $@ $(LDFLAGS_FOR_BUILD)

errmsg_check_list: errmsg_check$(BUILD_EXEEXT)
	$(AM_V_at)grep DW_DLE libdwarf.h >errmsg_check_list
	$(gn_verbose)./errmsg_check$(BUILD_EXEEXT) -f errmsg_check_list

### libdwarf

lib_LTLIBRARIES = libdwarf.la

nodist_libdwarf_la_SOURCES = \
dwarf_names.h \
dwarf_names.c

libdwarf_la_SOURCES = \
dwarf.h \
dwarf_abbrev.c \
dwarf_abbrev.h \
dwarf_alloc.c \
dwarf_alloc.h \
dwarf_arange.c \
dwarf_arange.h \
dwarf_base_types.h \
dwarf_die_deliv.c \
dwarf_die_deliv.h \
dwarf_dnames.c \
dwarf_dnames.h \
dwarf_dsc.c \
dwarf_dsc.h \
dwarf_elf_access.c \
dwarf_elf_access.h \
dwarf_errmsg_list.h \
dwarf_error.c \
dwarf_error.h \
dwarf_form.c \
dwarf_frame.c \
dwarf_frame.h \
dwarf_frame2.c \
dwarf_funcs.c \
dwarf_funcs.h \
dwarf_gdbindex.c \
dwarf_gdbindex.h \
dwarf_global.c \
dwarf_global.h \
dwarf_groups.c \
dwarf_harmless.c \
dwarf_harmless.h \
dwarf_incl.h \
dwarf_init_finish.c \
dwarf_leb.c \
dwarf_line.c \
dwarf_line.h \
dwarf_line_table_reader_common.h \
dwarf_loc.c \
dwarf_loc.h \
dwarf_loc2.h \
dwarf_macro.c \
dwarf_macro.h \
dwarf_macro5.c \
dwarf_macro5.h \
dwarf_opaque.h \
dwarf_original_elf_init.c \
dwarf_print_lines.c \
dwarf_pubtypes.c \
dwarf_query.c \
dwarf_ranges.c \
dwarf_reloc_386.h \
dwarf_reloc_arm.h \
dwarf_reloc_mips.h \
dwarf_reloc_ppc.h \
dwarf_reloc_ppc64.h \
dwarf_reloc_x86_64.h \
dwarf_str_offsets.c \
dwarf_str_offsets.h \
dwarf_string.c \
dwarf_tied.c \
dwarf_tsearchhash.c \
dwarf_tsearch.h \
dwarf_types.c \
dwarf_types.h \
dwarf_util.c \
dwarf_util.h \
dwarf_vars.c \
dwarf_vars.h \
dwarf_weaks.c \
dwarf_weaks.h \
dwarf_xu_index.c \
dwarf_xu_index.h \
libdwarf.h \
libdwarf_version.h \
libdwarfdefs.h \
malloc_check.c \
malloc_check.h \
pro_alloc.c \
pro_alloc.h \
pro_arange.c \
pro_arange.h \
pro_die.c \
pro_die.h \
pro_dnames.h \
pro_dnames.c \
pro_encode_nm.c \
pro_encode_nm.h \
pro_error.c \
pro_error.h \
pro_expr.c \
pro_expr.h \
pro_finish.c \
pro_forms.c \
pro_frame.c \
pro_frame.h \
pro_funcs.c \
pro_incl.h \
pro_init.c \
pro_line.c \
pro_line.h \
pro_macinfo.c \
pro_macinfo.h \
pro_opaque.h \
pro_pubnames.c \
pro_reloc.c \
pro_reloc.h \
pro_reloc_stream.c \
pro_reloc_stream.h \
pro_reloc_symbolic.c \
pro_reloc_symbolic.h \
pro_section.c \
pro_section.h \
pro_types.c \
pro_types.h \
pro_util.h \
pro_vars.c \
pro_weaks.c

libdwarf_la_CFLAGS = 

libdwarf_la_LIBADD = @DWARF_LIBS@

libdwarf_la_LDFLAGS = -fPIC -no-undefined -version-info @version_info@ @release_info@

# checkexamples.c
# dwarf_stubs.c

TESTS = runtests.sh
AM_TESTS_ENVIRONMENT = DWTOPSRCDIR='$(top_srcdir)'; export DWTOPSRCDIR;

include_HEADERS = $(top_srcdir)/libdwarf/dwarf.h libdwarf.h

libdwarfdevdir = $(datadir)/libdwarf/libdwarf-devel
libdwarfdev_DATA = \
libdwarf2.1.pdf \
libdwarf2p.1.pdf 

EXTRA_DIST = \
COPYING \
LGPL.txt \
LIBDWARFCOPYRIGHT \
CHANGES \
ChangeLog \
ChangeLog2006 \
ChangeLog2007 \
ChangeLog2008 \
ChangeLog2009 \
ChangeLog2010 \
ChangeLog2011 \
ChangeLog2012 \
ChangeLog2013 \
ChangeLog2014 \
ChangeLog2015 \
ChangeLog2016 \
ChangeLog2017 \
CODINGSTYLE \
dwarf_test_errmsg_list.c \
libdwarf2.1.mm \
libdwarf2p.1.mm \
mips_extensions.mm \
mips_extensions.pdf  \
CMakeLists.txt \
libdwarf.h.in \
pdfbld.sh \
NEWS \
README \
configure.cmake \
$(libdwarf_DATA) \
$(libdwarfdev_DATA)

CLEANFILES = \
dwarf_names.c \
dwarf_names.h \
dwarf_names_enum.h \
dwarf_names_new.h \
errmsg_check_list