-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
78 lines (66 loc) · 1.88 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
SUBDIRS = img
sbin_PROGRAMS = mtr
man_MANS = mtr.8
install-exec-hook:
chmod u+s $(DESTDIR)$(sbindir)/mtr
mtr_SOURCES = mtr.c \
net.c net.h \
dns.c dns.h \
raw.c raw.h \
split.c split.h \
display.c display.h \
report.c report.h \
select.c select.h \
mtr-curses.h \
mtr-gtk.h
nodist_mtr_SOURCES = version.h
EXTRA_mtr_SOURCES = curses.c \
gtk.c
AM_CPPFLAGS =
mtr_DEPENDENCIES = $(GTK_OBJ) $(CURSES_OBJ)
mtr_LDFLAGS = $(GTK_OBJ) $(CURSES_OBJ)
mtr_LDADD = $(RESOLV_LIBS)
if LOCAL_GETOPT
mtr_SOURCES += getopt/getopt.c getopt/getopt1.c getopt/getopt.h
AM_CPPFLAGS += -Igetopt
endif
if IPINFO
mtr_SOURCES += asn.c asn.h
endif
if GRAPHCAIRO
mtr_LDADD += libgraphcairo.a
noinst_LIBRARIES = libgraphcairo.a
libgraphcairo_a_SOURCES = \
graphcairo/graphcairo.c graphcairo/graphcairo.h \
graphcairo/graphcairo-mtr.c graphcairo/graphcairo-mtr.h \
graphcairo/graphcairo-backend.h
if GRAPHCAIRO_XCB
libgraphcairo_a_SOURCES += graphcairo/graphcairo-xcb.c
endif
if GRAPHCAIRO_XLIB
libgraphcairo_a_SOURCES += graphcairo/graphcairo-xlib.c
endif
libgraphcairo_a_CPPFLAGS = @graphcairo_CFLAGS@ -Igraphcairo
AM_CPPFLAGS += -Igraphcairo
mtr_LDADD += @graphcairo_LIBS@
mtr_SOURCES += $(graphcairo_a_SOURCES)
endif
if LIBIDN
AM_CPPFLAGS += @libidn_CFLAGS@
mtr_LDADD += @libidn_LIBS@
endif
CLEANFILES = version.h
BUILT_SOURCES = version.h
version.h: version.h.tmp Makefile $(mtr_SOURCES)
@cat version.h.tmp > $@; \
if [ -d .git ] && [ -n "$$(which git)" ]; then \
xver="+git:$$(git rev-list -n1 --abbrev=8 --abbrev-commit HEAD)"; \
sed \
-e "/#define *MTR_VERSION */{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \
version.h.tmp > $@; \
fi;
EXTRA_DIST = SECURITY mtr.8 Makefile Makefile.dist
distclean-local:
(sleep 3; cp Makefile.dist Makefile) &
rm -f *.orig
DISTCLEANFILES = *~