forked from mavlink-router/mavlink-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
136 lines (123 loc) · 2.68 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
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
DISTCLEAN_LOCAL_HOOKS =
EXTRA_DIST =
CLEANFILES = $(BUILT_FILES)
noinst_LTLIBRARIES =
bin_PROGRAMS =
noinst_PROGRAMS =
noinst_SCRIPTS =
BUILT_FILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
GCC_COLORS ?= 'yes'
export GCC_COLORS
BUILT_SOURCES = include/mavlink/common/mavlink.h
clean-local:
rm -rf $(top_builddir)/include/mavlink
include/mavlink/common/mavlink.h: modules/mavlink/pymavlink/tools/mavgen.py modules/mavlink/message_definitions/v1.0/common.xml
$(AM_V_GEN)python2 $(srcdir)/modules/mavlink/pymavlink/tools/mavgen.py \
-o include/mavlink \
--lang C \
--wire-protocol 2.0 \
$(srcdir)/modules/mavlink/message_definitions/v1.0/common.xml
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_builddir)/include/mavlink \
-I$(top_builddir)/include/mavlink/common \
-DSYSCONFDIR=\""$(sysconfdir)"\"
AM_CFLAGS = \
-pipe \
-Wall \
-W \
-Wextra \
-Wno-inline \
-Wundef \
-Wformat=2 \
-Wlogical-op \
-Wsign-compare \
-Wformat-security \
-Wmissing-include-dirs \
-Wformat-nonliteral \
-Wold-style-definition \
-Wpointer-arith \
-Winit-self \
-Wdeclaration-after-statement \
-Wfloat-equal \
-Wmissing-prototypes \
-Wstrict-prototypes \
-Wredundant-decls \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wshadow \
-Wendif-labels \
-Wstrict-aliasing=3 \
-Wwrite-strings \
-Wno-long-long \
-Wno-overlength-strings \
-Wno-unused-parameter \
-Wno-missing-field-initializers \
-Wno-unused-result \
-Wnested-externs \
-Wchar-subscripts \
-Wtype-limits \
-Wuninitialized \
-fno-common \
-fdiagnostics-show-option \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections
AM_CXXFLAGS = \
-pipe \
-Wall \
-W \
-Wextra \
-Wno-inline \
-Wundef \
-Wformat=2 \
-Wlogical-op \
-Wsign-compare \
-Wformat-security \
-Wmissing-include-dirs \
-Wformat-nonliteral \
-Wpointer-arith \
-Winit-self \
-Wfloat-equal \
-Wredundant-decls \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wshadow \
-Wendif-labels \
-Wstrict-aliasing=3 \
-Wwrite-strings \
-Wno-long-long \
-Wno-overlength-strings \
-Wno-unused-parameter \
-Wno-missing-field-initializers \
-Wno-unused-result \
-Wchar-subscripts \
-Wtype-limits \
-Wuninitialized \
-fno-common \
-fdiagnostics-show-option \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections
AM_LDFLAGS = \
-Wl,--as-needed \
-Wl,--no-undefined \
-Wl,--gc-sections
bin_PROGRAMS += mavlink-routerd
mavlink_routerd_SOURCES = \
comm.cpp \
comm.h \
log.c \
log.h \
macro.h \
main.cpp \
util.c \
util.h
noinst_PROGRAMS += heartbeat-print
heartbeat_print_SOURCES = \
examples/heartbeat-print.cpp
noinst_SCRIPTS += examples/heartbeat-print.py