NetBSD/usr.sbin/config/Makefile

26 lines
572 B
Makefile

# $NetBSD: Makefile,v 1.26 2002/11/20 05:33:58 simonb Exp $
# from: @(#)Makefile 8.2 (Berkeley) 4/19/94
PROG= config
BINDIR= /usr/sbin
SRCS= files.c gram.y hash.c main.c mkdevsw.c mkheaders.c mkioconf.c \
mkmakefile.c mkswap.c pack.c scan.l sem.c util.c
YFLAGS=
CPPFLAGS+=-I${.CURDIR} -I.
CLEANFILES+=gram.h
CWARNFLAGS+=-Wno-format-y2k
MAN= config.8
# XXX should use "YHEADER", but make this work on 1.3 as well as 1.4+
gram.h: gram.c
gram.c: gram.y
${YACC.y} -d ${.ALLSRC}
mv -f y.tab.c gram.c
mv -f y.tab.h gram.h
.ifndef HOSTPROG
.include <bsd.prog.mk>
.endif