Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2014 09:03:34 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r275306 - projects/building-blocks/sbin/rcorder
Message-ID:  <201411300903.sAU93YVp047418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Nov 30 09:03:34 2014
New Revision: 275306
URL: https://svnweb.freebsd.org/changeset/base/275306

Log:
  Fix CFLAGS+=-DDEBUG by using the right header for libutil (libutil.h, not
  util.h)

Modified:
  projects/building-blocks/sbin/rcorder/Makefile
  projects/building-blocks/sbin/rcorder/rcorder.c

Modified: projects/building-blocks/sbin/rcorder/Makefile
==============================================================================
--- projects/building-blocks/sbin/rcorder/Makefile	Sun Nov 30 08:43:55 2014	(r275305)
+++ projects/building-blocks/sbin/rcorder/Makefile	Sun Nov 30 09:03:34 2014	(r275306)
@@ -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>

Modified: projects/building-blocks/sbin/rcorder/rcorder.c
==============================================================================
--- projects/building-blocks/sbin/rcorder/rcorder.c	Sun Nov 30 08:43:55 2014	(r275305)
+++ projects/building-blocks/sbin/rcorder/rcorder.c	Sun Nov 30 09:03:34 2014	(r275306)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411300903.sAU93YVp047418>