-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.am
111 lines (96 loc) · 3.07 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I build/m4
EXTRA_DIST =
noinst_PROGRAMS =
if WANT_TESTS
noinst_PROGRAMS += test_suite
endif
if WANT_EXAMPLES
noinst_PROGRAMS += examples/gdbwire_mi
noinst_PROGRAMS += examples/gdbwire
if WANT_AMALGAMATION
noinst_PROGRAMS += examples/gdbwire_amalgamation
endif
endif
lib_LTLIBRARIES=libgdbwire.la
# The gdbwire configuration
libgdbwire_la_SOURCES= \
src/gdbwire_mi_command.h \
src/gdbwire_mi_command.c \
src/gdbwire_mi_grammar.h \
src/gdbwire_mi_grammar.y \
src/gdbwire_mi_lexer.l \
src/gdbwire_mi_parser.h \
src/gdbwire_mi_parser.c \
src/gdbwire_mi_pt.h \
src/gdbwire_mi_pt.c \
src/gdbwire_mi_pt_alloc.h \
src/gdbwire_mi_pt_alloc.c \
src/gdbwire_sys.h \
src/gdbwire_sys.c \
src/gdbwire.h \
src/gdbwire.c \
src/gdbwire_assert.h \
src/gdbwire_logger.h \
src/gdbwire_logger.c \
src/gdbwire_result.h \
src/gdbwire_string.h \
src/gdbwire_string.c
libgdbwire_la_CFLAGS= \
-I@GDBWIRE_ABS_TOP_SRCDIR@/src \
-I@GDBWIRE_ABS_TOP_BUILDDIR@/src
# The test suite configuration
test_suite_SOURCES = \
src/progs/test_suite/catch.hpp \
src/progs/test_suite/gdbwire_string.cpp \
src/progs/test_suite/fixture.h \
src/progs/test_suite/fixture.cpp \
src/progs/test_suite/gdbwire_mi_command.cpp \
src/progs/test_suite/gdbwire_mi_parser.cpp \
src/progs/test_suite/gdbwire_mi_pt.cpp \
src/progs/test_suite/gdbwire.cpp \
src/progs/test_suite/main.cpp
test_suite_CPPFLAGS = \
-I@GDBWIRE_ABS_TOP_SRCDIR@/src/progs/test_suite \
-I@GDBWIRE_ABS_TOP_SRCDIR@/src
test_suite_LDFLAGS =
test_suite_LDADD = libgdbwire.la
EXTRA_DIST += src/progs/test_suite/data
# The gdbwire_mi example configuration
examples_gdbwire_mi_SOURCES = src/progs/examples/gdbwire_mi_example.c
examples_gdbwire_mi_CFLAGS = -I@GDBWIRE_ABS_TOP_SRCDIR@/src
examples_gdbwire_mi_LDFLAGS =
examples_gdbwire_mi_LDADD = libgdbwire.la
# The gdbwire example configuration
examples_gdbwire_SOURCES = src/progs/examples/gdbwire_example.c
examples_gdbwire_CFLAGS = -I@GDBWIRE_ABS_TOP_SRCDIR@/src
examples_gdbwire_LDFLAGS =
examples_gdbwire_LDADD = libgdbwire.la
BUILT_SOURCES = \
src/gdbwire_mi_grammar.c \
src/gdbwire_mi_lexer.c
if WANT_AMALGAMATION
# Compile the gdbwire example using the amalgamation if
# both options are present
examples_gdbwire_amalgamation_SOURCES = \
src/progs/examples/gdbwire_example.c
# Do not want to distribute the generated files.
# Let the user create them if desired.
nodist_examples_gdbwire_amalgamation_SOURCES = \
src/amalgamation/gdbwire.c
examples_gdbwire_amalgamation_CFLAGS = \
-I@GDBWIRE_ABS_TOP_BUILDDIR@/src/amalgamation
# This will build both gdbwire.h and gdbwire.c.
BUILT_SOURCES += src/amalgamation/gdbwire.c
EXTRA_DIST += src/amalgamation/mkgdbwire.py
src/amalgamation/gdbwire.c: \
src/gdbwire_mi_grammar.c \
src/gdbwire_mi_lexer.c \
src/amalgamation/mkgdbwire.py
mkdir -p src/amalgamation && \
cd src/amalgamation && \
python3 \
"@GDBWIRE_ABS_TOP_SRCDIR@/src/amalgamation/mkgdbwire.py" \
"@PACKAGE_VERSION@" \
"@GDBWIRE_ABS_TOP_SRCDIR@" \
"@GDBWIRE_ABS_TOP_BUILDDIR@"
endif