From d94dff674a83ccc51db1a01ffeb6e5d45b58ea9d Mon Sep 17 00:00:00 2001 From: Mats O Jansson Date: Sat, 21 Sep 1996 13:49:18 +0000 Subject: Initial import of mopd-2.5.3. -moj --- usr.sbin/mopd/mopchk/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 usr.sbin/mopd/mopchk/Makefile (limited to 'usr.sbin/mopd/mopchk/Makefile') diff --git a/usr.sbin/mopd/mopchk/Makefile b/usr.sbin/mopd/mopchk/Makefile new file mode 100644 index 00000000000..812345103cf --- /dev/null +++ b/usr.sbin/mopd/mopchk/Makefile @@ -0,0 +1,18 @@ +# $Id: Makefile,v 1.1 1996/09/21 13:49:17 maja Exp $ + +PROG= mopchk +SRCS= mopchk.c device.c version.c pf.c loop-bsd.c file.c +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../common -DINFO +CLEANFILES= version.c version.h +LDADD= -lkvm +.PATH: ${.CURDIR}/.. ${.CURDIR}/../common + +version.c version.h: ${.CURDIR}/../common/VERSION + rm -f version.c; \ + sed 's/.*/char version[] = "&";/' ${.ALLSRC} > version.c + set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' ${.ALLSRC}` ; \ + { echo '#define VERSION_MAJOR' $$1 ; \ + echo '#define VERSION_MINOR' $$2 ; } > version.h + + +.include -- cgit v1.2.3