Annotation of embedaddon/mtr/Makefile.am, revision 1.1.1.2
1.1.1.2 ! misho 1: EXTRA_DIST = \
! 2: BSDCOPYING \
! 3: SECURITY \
! 4: build-aux/mtr.bat \
! 5: img/mtr_icon.xpm
! 6: $(TEST_FILES)
! 7:
! 8: sbin_PROGRAMS = mtr mtr-packet
! 9: TESTS = \
! 10: test/cmdparse.py \
! 11: test/param.py \
! 12: test/probe.py
! 13:
! 14: TEST_FILES = \
! 15: test/cmdparse.py \
! 16: test/mtrpacket.py \
! 17: test/param.py \
! 18: test/probe.py \
! 19: test/lint.sh
! 20: EXTRA_DIST += $(TEST_FILES)
! 21:
! 22: PATHFILES =
! 23: CLEANFILES = $(PATHFILES)
! 24: EXTRA_DIST += $(PATHFILES:=.in)
! 25:
! 26: #
! 27: # We would use % pattern matching here, but that is a GNU make
! 28: # extension and doesn't work on FreeBSD.
! 29: #
! 30: mtr-packet.8: $(srcdir)/man/mtr-packet.8.in
! 31: $(AM_V_GEN) $(srcdir)/build-aux/mangen.sh "$(VERSION)" \
! 32: $(srcdir)/man/mtr-packet.8.in $@
! 33:
! 34: mtr.8: $(srcdir)/man/mtr.8.in
! 35: $(AM_V_GEN) $(srcdir)/build-aux/mangen.sh "$(VERSION)" \
! 36: $(srcdir)/man/mtr.8.in $@
! 37:
! 38: $(PATHFILES): Makefile
! 39:
! 40: dist_man_MANS = mtr.8 mtr-packet.8
! 41: PATHFILES += man/mtr.8 man/mtr-packet.8
1.1 misho 42:
43: install-exec-hook:
1.1.1.2 ! misho 44: `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/mtr-packet` \
! 45: || chmod u+s $(DESTDIR)$(sbindir)/mtr-packet
! 46:
! 47: mtr_SOURCES = ui/mtr.c ui/mtr.h \
! 48: ui/net.c ui/net.h \
! 49: ui/cmdpipe.c ui/cmdpipe.h \
! 50: ui/dns.c ui/dns.h \
! 51: ui/raw.c ui/raw.h \
! 52: ui/split.c ui/split.h \
! 53: ui/display.c ui/display.h \
! 54: ui/report.c ui/report.h \
! 55: ui/select.c ui/select.h \
! 56: ui/utils.c ui/utils.h \
! 57: packet/cmdparse.c packet/cmdparse.h \
! 58: ui/mtr-curses.h \
! 59: img/mtr_icon.xpm \
! 60: ui/mtr-gtk.h
! 61:
! 62: if WITH_ERROR
! 63: mtr_SOURCES += \
! 64: portability/error.h \
! 65: portability/error.c
! 66: endif
1.1 misho 67:
1.1.1.2 ! misho 68: if WITH_GETOPT
! 69: mtr_SOURCES += \
! 70: portability/getopt.h \
! 71: portability/getopt.c \
! 72: portability/getopt1.c
! 73: endif
! 74:
! 75: if WITH_IPINFO
! 76: mtr_SOURCES += ui/asn.c ui/asn.h
! 77: endif
1.1 misho 78:
1.1.1.2 ! misho 79: if WITH_CURSES
! 80: mtr_SOURCES += ui/curses.c
! 81: endif
1.1 misho 82:
1.1.1.2 ! misho 83: if WITH_GTK
! 84: mtr_SOURCES += ui/gtk.c
! 85: endif
! 86:
! 87: mtr_INCLUDES = $(GLIB_CFLAGS) -I$(top_builddir) -I$(top_srcdir)
! 88: mtr_CFLAGS = $(GTK_CFLAGS) $(NCURSES_CFLAGS)
! 89: mtr_LDADD = $(GTK_LIBS) $(NCURSES_LIBS) $(RESOLV_LIBS)
! 90:
! 91:
! 92: mtr_packet_SOURCES = \
! 93: portability/queue.h \
! 94: packet/packet.c \
! 95: packet/cmdparse.c packet/cmdparse.h \
! 96: packet/command.c packet/command.h \
! 97: packet/platform.h \
! 98: packet/probe.c packet/probe.h \
! 99: packet/protocols.h \
! 100: packet/timeval.c packet/timeval.h \
! 101: packet/wait.h
! 102:
! 103: mtr_packet_LDADD = $(CAP_LIBS)
! 104:
! 105:
! 106: if CYGWIN
! 107:
! 108: mtr_packet_SOURCES += \
! 109: packet/command_cygwin.c packet/command_cygwin.h \
! 110: packet/probe_cygwin.c packet/probe_cygwin.h \
! 111: packet/wait_cygwin.c
! 112: mtr_packet_LDADD += -lcygwin -liphlpapi -lws2_32
! 113:
! 114: dist_windows_aux = \
! 115: $(srcdir)/build-aux/mtr.bat \
! 116: $(srcdir)/AUTHORS \
! 117: $(srcdir)/BSDCOPYING \
! 118: $(srcdir)/COPYING \
! 119: $(srcdir)/README \
! 120: $(srcdir)/NEWS
! 121:
! 122: distwindir = $(distdir)-win-$(host_cpu)
! 123:
! 124: # Bundle necessary files for a Windows binary distribution
! 125: distdir-win: $(dist_windows_aux) mtr.exe mtr-packet.exe
! 126: rm -fr $(distwindir)
! 127: mkdir -p $(distwindir) $(distwindir)/bin $(distwindir)/terminfo
! 128: cp $(dist_windows_aux) -t $(distwindir)
! 129: cp mtr.exe mtr-packet.exe -t $(distwindir)/bin
! 130: ldd mtr.exe | grep -v cygdrive | awk '{ print $$3 }' | xargs cp -t $(distwindir)/bin
! 131: cp `find /usr/share/terminfo -name cygwin | xargs dirname` -r $(distwindir)/terminfo
! 132:
! 133: # Zip up a Windows binary distribution
! 134: dist-windows-bin: distdir-win
! 135: rm -f $(distwindir).zip
! 136: zip -rq $(distwindir).zip $(distwindir)
! 137: rm -fr $(distwindir)
! 138:
! 139: else # if CYGWIN
! 140:
! 141: check_PROGRAMS = mtr-packet-listen
! 142:
! 143: mtr_packet_SOURCES += \
! 144: packet/command_unix.c packet/command_unix.h \
! 145: packet/construct_unix.c packet/construct_unix.h \
! 146: packet/deconstruct_unix.c packet/deconstruct_unix.h \
! 147: packet/probe_unix.c packet/probe_unix.h \
! 148: packet/wait_unix.c
! 149:
! 150: mtr_packet_listen_SOURCES = \
! 151: test/packet_listen.c
! 152:
! 153: endif # if CYGWIN
! 154:
! 155:
! 156: if BUILD_BASH_COMPLETION
! 157: dist_bashcompletion_DATA = bash-completion/mtr
! 158: endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>