This commit is contained in:
chris
2002-03-29 12:06:59 +00:00
parent ed83a35977
commit ff9fb984cd

View File

@@ -27,23 +27,17 @@ MANDIR = man
#MANDIR = share/man # FHS-ish #MANDIR = share/man # FHS-ish
# You shouldn't need to change anything below this point. # You shouldn't need to change anything below this point.
CFLAGS += -g -Wall VERSION = 0.1
CFLAGS += -g -Wall "-DIFTOP_VERSION=\"$(IFTOPVERSION)\""
LDFLAGS += -g LDFLAGS += -g
LDLIBS += -lpcap -lpthread -lcurses -lm LDLIBS += -lpcap -lpthread -lcurses -lm
SRCS = iftop.c \ SRCS = iftop.c addr_hash.c hash.c ns_hash.c resolver.c ui.c util.c sorted_list.c
addr_hash.c \ HDRS = addr_hash.h hash.h iftop.h ns_hash.h resolver.h sorted_list.h ui.h
hash.c \ TXTS = README INSTALL TODO iftop.8
ns_hash.c \
resolver.c \
ui.c \
util.c \
sorted_list.c
OBJS = $(SRCS:.c=.o) OBJS = $(SRCS:.c=.o)
HDRS = addr_hash.h
# If you do not have makedepend, you will need to remove references to depend # If you do not have makedepend, you will need to remove references to depend
# and nodepend below. # and nodepend below.
iftop: depend $(OBJS) Makefile iftop: depend $(OBJS) Makefile
@@ -62,6 +56,12 @@ uninstall:
clean: nodepend clean: nodepend
rm -f *~ *.o core iftop rm -f *~ *.o core iftop
tarball: nodepend $(SRCS) $(HDRS) $(TXTS)
mkdir iftop-$(VERSION)
set -e ; for i in Makefile $(SRCS) $(HDRS) $(TXTS) ; do cp $$i iftop-$(VERSION)/$$i ; done
tar cvf - iftop-$(VERSION) | gzip --best > iftop-$(VERSION).tar.gz
rm -rf iftop-$(VERSION)
tags : tags :
etags *.c *.h etags *.c *.h