From: David van Moolenbroek Date: Fri, 17 Jul 2015 21:30:17 +0000 (+0200) Subject: Kernel: correctly set USE_ defines from Makefile X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F3049%2F1;p=minix.git Kernel: correctly set USE_ defines from Makefile Without defining these to 1, #if statements on them will fail. Change-Id: Ifc4824a6ffacc4bebcfd6f1110c864d7eb16401a --- diff --git a/minix/kernel/Makefile b/minix/kernel/Makefile index 0f1de8d65..3cfaa1744 100644 --- a/minix/kernel/Makefile +++ b/minix/kernel/Makefile @@ -49,20 +49,20 @@ SRCS+= smp.c .if ${USE_WATCHDOG} != "no" SRCS+= watchdog.c -CPPFLAGS+= -DUSE_WATCHDOG +CPPFLAGS+= -DUSE_WATCHDOG=1 .endif # Extra debugging routines .if ${USE_SYSDEBUG} != "no" SRCS+= debug.c -CPPFLAGS+= -DUSE_SYSDEBUG +CPPFLAGS+= -DUSE_SYSDEBUG=1 .endif # These come last, so the profiling buffer is at the end of the data segment SRCS+= profile.c do_sprofile.c .if ${USE_LIVEUPDATE} != "no" -CPPFLAGS+= -DUSE_UPDATE +CPPFLAGS+= -DUSE_UPDATE=1 .endif CLEANFILES+=extracted-errno.h extracted-mfield.h extracted-mtype.h procoffsets.h