| 1 |
###Copyright (C) 2021 David Anderson <davea42 at linuxmail dot org> |
| 2 |
###This code is public domain and can be freely used or copied. |
| 3 |
|
| 4 |
AUTOMAKE_OPTIONS=subdir-objects |
| 5 |
MAINTAINERCLEANFILES = Makefile.in |
| 6 |
rebuild: tagattr |
| 7 |
cp $(top_srcdir)/src/bin/tag_attr/tag_attr.list tmp-t2.c |
| 8 |
$(CC) -DTRIVIAL_NAMING -I$(top_srcdir)/src/lib/libdwarf -E tmp-t2.c >tmp-tag-attr-build2.tmp |
| 9 |
./tagattr -s -i tmp-tag-attr-build2.tmp -o dwarfdump-ta-table.h |
| 10 |
cp dwarfdump-ta-table.h $(top_srcdir)/src/bin/dwarfdump/ |
| 11 |
rm -f tmp-tag-attr-build2.tmp |
| 12 |
rm -f tmp-t2.c |
| 13 |
rm -f tmp-t3.c |
| 14 |
cp $(top_srcdir)/src/bin/tag_attr/tag_attr_ext.list tmp-t3.c |
| 15 |
$(CC) -DTRIVIAL_NAMING -I$(top_srcdir)/src/lib/libdwarf -E tmp-t3.c > tmp-tag-attr-build3.tmp |
| 16 |
./tagattr -e -i tmp-tag-attr-build3.tmp -o dwarfdump-ta-ext-table.h |
| 17 |
cp dwarfdump-ta-ext-table.h $(top_srcdir)/src/bin/dwarfdump/ |
| 18 |
|
| 19 |
noinst_PROGRAMS = tagattr |
| 20 |
tagattr_SOURCES = tag_attr.c \ |
| 21 |
$(top_srcdir)/src/bin/dwarfdump/dd_getopt.c \ |
| 22 |
$(top_srcdir)/src/bin/dwarfdump/dd_tsearchbal.c \ |
| 23 |
$(top_srcdir)/src/bin/dwarfdump/dd_common.c \ |
| 24 |
$(top_srcdir)/src/bin/dwarfdump/dd_esb.c \ |
| 25 |
$(top_srcdir)/src/bin/dwarfdump/dd_makename.c \ |
| 26 |
$(top_srcdir)/src/bin/dwarfdump/dd_naming.c \ |
| 27 |
$(top_srcdir)/src/bin/dwarfdump/dd_sanitized.c \ |
| 28 |
$(top_srcdir)/src/bin/dwarfdump/dd_utf8.c \ |
| 29 |
$(top_srcdir)/src/bin/dwarfdump/dd_glflags.c \ |
| 30 |
$(top_srcdir)/src/bin/dwarfdump/dd_safe_strcpy.c \ |
| 31 |
$(top_srcdir)/src/bin/tag_tree/tag_common.c |
| 32 |
tagattr_CPPFLAGS = -DTRIVIAL_NAMING \ |
| 33 |
-DBUILD_NONLIB_SOURCE \ |
| 34 |
-I$(top_srcdir)/src/lib/libdwarf \ |
| 35 |
-I$(top_srcdir)/src/bin/dwarfdump |
| 36 |
tagattr_CFLAGS = $(DWARF_CFLAGS_WARN) |
| 37 |
tagattr_LDADD = $(top_builddir)/src/lib/libdwarf/libdwarf.la |
| 38 |
|
| 39 |
EXTRA_DIST = \ |
| 40 |
meson.build \ |
| 41 |
tag_attr.list \ |
| 42 |
tag_attr_ext.list |
| 43 |
|
| 44 |
|