blob: e034c94b1edaed26bb3b3b0dd2444dee513b2666 (
plain)
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
|
# from: @(#)Makefile.dist 5.5 (Berkeley) 8/23/90
# $Id: Makefile.dist,v 1.2 1996/02/19 19:53:34 dm Exp $
STDDEF= -DDEBUG -DSTATS
### -DSIG_FN=void -DALLOW_T_UNSPEC -Dmalloc=rt_malloc -Dfree=rt_free
### ALLOC=storage.o
CFLAGS= -O ${STDDEF} ${DEFINES}
RES=
LIBS= ${RES}
#LIBC= /lib/libc.a
SRCS= db_dump.c db_load.c db_lookup.c db_reload.c db_save.c db_update.c \
ns_forw.c ns_init.c ns_main.c ns_maint.c ns_req.c ns_resp.c \
ns_sort.c ns_stats.c db_glue.c named-xfer.c
HDRS= db.h ns.h
OBJS= db_dump.o db_load.o db_lookup.o db_reload.o db_save.o db_update.o \
ns_forw.o ns_init.o ns_main.o ns_maint.o ns_req.o ns_resp.o \
ns_sort.o ns_stats.o db_glue.o $(ALLOC)
XFEROBJ= named-xfer.o db_glue.o
#MAN= named.0
all: named named-xfer
named: ${OBJS} ${LIBC} version.c
${CC} -o $@ version.c ${OBJS} ${LIBS}
version.c: Version.c
(u=$${USER-root} d=`pwd` h=`hostname` t=`date`; \
sed -e "s|%WHEN%|$${t}|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< Version.c > version.c)
named-xfer: ${XFEROBJ} ${LIBC}
${CC} -o $@ ${XFEROBJ} ${LIBS}
clean:
rm -f ${OBJS} ${XFEROBJ} core named named-xfer version.o version.c
cleandir: clean
rm -f ${MAN} tags .depend
depend .depend: ${SRCS}
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
install -s -o bin -g bin -m 755 named ${DESTDIR}/etc/named
install -s -o bin -g bin -m 755 named-xfer ${DESTDIR}/etc/named-xfer
# install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
install -c -o bin -g bin -m 755 named.restart ${DESTDIR}/etc
install -c -o bin -g bin -m 755 named.reload ${DESTDIR}/etc
lint: ${SRCS} ${HDRS}
lint -Dlint ${CFLAGS} ${SRCS}
tags: ${SRCS}
ctags -t ${SRCS} ${HDRS}
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|