summaryrefslogtreecommitdiff
path: root/usr.sbin/named/Makefile
blob: 7f35099fcbcf1f32529347d97efabd610944c0f7 (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
#	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
#	$Id: Makefile,v 1.1 1995/10/18 08:47:49 deraadt Exp $

### -DALLOW_T_UNSPEC -Dmalloc=rt_malloc -Dfree=rt_free
### ALLOC=storage.o
PROG=	named
MAN=	named.8
CFLAGS+=-DDEBUG -DSTATS
SRCS=	db_dump.c db_glue.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
OBJS+=	version.o
CLEANFILES+=version.c version.o
SUBDIR=	tools xfer

version.c: ${.CURDIR}/Version.c
	(u=$${USER-root} d=`pwd |sed -e 's|/obj/|/src/|'` \
	 h=`hostname` t=`date`; \
	sed -e "s|%WHEN%|$${t}|" \
	    -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
	    < ${.CURDIR}/Version.c > version.c)

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/named.restart \
	    ${.CURDIR}/named.reload ${DESTDIR}${BINDIR}

.include <bsd.prog.mk>