1# ex:ts=8
2#
3# $FreeBSD$
4#
5# Makefile for amd
6# 	This file is under a "BSD" copyright (c) by David O'Brien 1998.
7#	Portions derived from amd/libamu/Makefile
8#	$NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $
9
10.include <bsd.own.mk>
11
12SRCS=	config_local.h
13.if ${MK_NIS} == "no"
14SRCS+=	localconfig.h
15.endif
16CLEANFILES=	${SRCS}
17
18all depend: ${SRCS}
19
20config_local.h: newvers.sh
21	@rm -f ${.TARGET}
22	sh ${.ALLSRC} ${.CURDIR}/../../../sys/conf/newvers.sh > ${.TARGET}
23
24localconfig.h:
25	@rm -f ${.TARGET}
26	@echo "/* NIS disabled by WITHOUT_NIS src.conf option */" >> ${.TARGET}
27	@echo "#undef HAVE_MAP_NIS" >> ${.TARGET}
28
29.include <bsd.prog.mk>
30