diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2014-11-30 09:03:34 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2014-11-30 09:03:34 +0000 |
commit | d370dc47a197539c6f52b1b665a55a825d5f1253 (patch) | |
tree | 565ad098229095bf6eac9119f5536c4ef1a635b2 /sbin/rcorder | |
parent | 317fdbc62161d74538a88fb282811f35d66f994f (diff) | |
download | src-d370dc47a197539c6f52b1b665a55a825d5f1253.tar.gz src-d370dc47a197539c6f52b1b665a55a825d5f1253.zip |
Fix CFLAGS+=-DDEBUG by using the right header for libutil (libutil.h, not
util.h)
Notes
Notes:
svn path=/projects/building-blocks/; revision=275306
Diffstat (limited to 'sbin/rcorder')
-rw-r--r-- | sbin/rcorder/Makefile | 12 | ||||
-rw-r--r-- | sbin/rcorder/rcorder.c | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sbin/rcorder/Makefile b/sbin/rcorder/Makefile index 50e797f4cc43..5b2f4b4cf4e5 100644 --- a/sbin/rcorder/Makefile +++ b/sbin/rcorder/Makefile @@ -7,13 +7,11 @@ MAN= rcorder.8 LIBADD= util -# XXX hack for make's hash.[ch] -CFLAGS+= -DORDER -I. +CFLAGS+= -DORDER -SRCS+= util.h -CLEANFILES+= util.h - -util.h: - ln -sf ${.CURDIR}/../../lib/libutil/libutil.h ${.TARGET} +#CFLAGS+= -DDEBUG +.if ${CFLAGS:M*-DDEBUG} +CFLAGS+= -I${.CURDIR}/../../usr.bin/make +.endif .include <bsd.prog.mk> diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 83f6df839682..8c46b4fd1def 100644 --- a/sbin/rcorder/rcorder.c +++ b/sbin/rcorder/rcorder.c @@ -42,10 +42,10 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include <stdio.h> +#include <libutil.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <util.h> #include "ealloc.h" #include "sprite.h" |