forked from measurement-factory/dnstop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
62 lines (51 loc) · 1.28 KB
/
Makefile.in
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
PROG=dnstop
OPTFLAGS=@OPTFLAGS@
CC=@CC@
CFLAGS=@CFLAGS@ ${OPTFLAGS}
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datarootdir=@datarootdir@
datadir=@datadir@
mandir=@mandir@
SRCS= $(PROG).c \
hashtbl.c hashtbl.h \
inX_addr.c inX_addr.h \
known_tlds.h \
new_gtlds.h \
lookup3.c
OBJS= $(PROG).o \
hashtbl.o \
inX_addr.o \
lookup3.o
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) ${LIBS}
clean:
rm -f $(PROG) $(OBJS) $(PROG).core $(PROG).c~
distclean: clean
rm -rf autom4te.cache
rm -f config.h
rm -f config.log
rm -f config.status
rm -f config.status.lineno
rm -f Makefile
tar:
DATE=`date +%Y%m%d` && \
mkdir $(PROG)-$$DATE && \
cp -p LICENSE CHANGES $(SRCS) $(PROG).8 $(PROG)-$$DATE && \
cp -p configure Makefile.in config.h.in install-sh $(PROG)-$$DATE && \
cp -p configure.scan $(PROG)-$$DATE/configure.ac && \
perl -pi -e "s/\@VERSION\@/$$DATE/" $(PROG)-$$DATE/dnstop.c && \
tar czvf $(PROG)-$$DATE.tar.gz $(PROG)-$$DATE && \
chmod 444 $(PROG)-$$DATE.tar.gz && \
rm -rf $(PROG)-$$DATE && \
md5 *.gz > MD5s.txt
install: $(PROG)
install -m 755 $(PROG) ${DESTDIR}${bindir}
install -m 644 $(PROG).8 ${DESTDIR}${mandir}/man8
uninstall:
rm -f ${DESTDIR}${bindir}/$(PROG)
rm -f ${DESTDIR}${mandir}/man8/$(PROG).8