summaryrefslogtreecommitdiff
path: root/sbin/rcorder
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2014-11-30 09:03:34 +0000
committerEnji Cooper <ngie@FreeBSD.org>2014-11-30 09:03:34 +0000
commitd370dc47a197539c6f52b1b665a55a825d5f1253 (patch)
tree565ad098229095bf6eac9119f5536c4ef1a635b2 /sbin/rcorder
parent317fdbc62161d74538a88fb282811f35d66f994f (diff)
downloadsrc-test2-d370dc47a197539c6f52b1b665a55a825d5f1253.tar.gz
src-test2-d370dc47a197539c6f52b1b665a55a825d5f1253.zip
Notes
Diffstat (limited to 'sbin/rcorder')
-rw-r--r--sbin/rcorder/Makefile12
-rw-r--r--sbin/rcorder/rcorder.c2
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"