Annotation of embedaddon/mtr/Makefile.am, revision 1.1.1.1
1.1 misho 1: SUBDIRS = img
2:
3: sbin_PROGRAMS = mtr
4: man_MANS = mtr.8
5: install-exec-hook:
6: chmod u+s $(DESTDIR)$(sbindir)/mtr
7:
8: mtr_SOURCES = mtr.c \
9: net.c net.h \
10: dns.c dns.h \
11: raw.c raw.h \
12: split.c split.h \
13: display.c display.h \
14: report.c report.h \
15: getopt.c getopt1.c getopt.h \
16: select.c select.h \
17: mtr-curses.h \
18: mtr-gtk.h
19:
20: if IPINFO
21: mtr_SOURCES += asn.c asn.h
22: endif
23:
24: nodist_mtr_SOURCES = version.h
25: EXTRA_mtr_SOURCES = curses.c \
26: gtk.c
27: DEFAULT_INCLUDES= $(GLIB_CFLAGS) -I.
28: mtr_DEPENDENCIES = $(GTK_OBJ) $(CURSES_OBJ)
29: mtr_LDFLAGS = $(GTK_OBJ) $(CURSES_OBJ)
30: mtr_LDADD = $(GLIB_LIBS) $(RESOLV_LIBS)
31:
32: CLEANFILES = version.h
33: BUILT_SOURCES = version.h
34:
35: version.h: version.h.tmp Makefile $(mtr_SOURCES)
36: @cat version.h.tmp > $@; \
37: if [ -d .git ] && [ -n "$$(which git)" ]; then \
38: xver="+git:$$(git rev-list -n1 --abbrev=8 --abbrev-commit HEAD)"; \
39: sed \
40: -e "/#define *MTR_VERSION */{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \
41: version.h.tmp > $@; \
42: fi;
43:
44: EXTRA_DIST = SECURITY mtr.8 Makefile Makefile.dist
45: distclean-local:
46: (sleep 3; cp Makefile.dist Makefile) &
47: rm -f *.orig
48:
49: DISTCLEANFILES = *~
50:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>