File: Makefile.in

package info (click to toggle)
dnstop 20120611-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 372 kB
  • ctags: 299
  • sloc: ansic: 3,065; sh: 340; makefile: 112
file content (60 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download
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
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 \
	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 && \
	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