blob: 0d156da98c934fdfc86b3f15e5a20c85325d9e29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# $OpenBSD: Makefile,v 1.5 2016/07/18 09:37:49 guenther Exp $
PROG= mopprobe
SRCS= mopprobe.c device.c get.c cmp.c mopdef.c version.c pf.c loop-bsd.c \
print.c nma.c
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../common -DNODL
CLEANFILES= version.c version.h
.PATH: ${.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 <bsd.prog.mk>
|