]> Zhao Yanbai Git Server - minix.git/commitdiff
Add MKEMBED option
authorArun Thomas <arun@minix3.org>
Tue, 26 Jul 2011 06:54:32 +0000 (08:54 +0200)
committerArun Thomas <arun@minix3.org>
Tue, 26 Jul 2011 06:54:32 +0000 (08:54 +0200)
share/mk/bsd.own.mk
share/mk/sys.mk

index 08fe4f3d8c78c2ace36f679422418ab7eb2c78d3..55814d340ef96193ea6ac34a09056a925cf86454 100644 (file)
@@ -772,7 +772,7 @@ _MKVARS.no= \
        MKUNPRIVED MKUPDATE MKX11 MKZFS
 #MINIX-specific vars
 _MKVARS.no+= \
-       MKIMAGEONLY
+       MKIMAGEONLY MKEMBED
 .for var in ${_MKVARS.no}
 ${var}?=no
 .endfor
index 5466a79209733d2bda0315d5c49f1a322f1058ed..147abb19c0e9b98e83a8c7a08480edd95ad02a36 100644 (file)
@@ -236,6 +236,12 @@ AR?=       aal
 .elif !empty(CC:M*gcc) || !empty(CC:M*clang) || !empty(CC:M*pcc)
 COMPILER_TYPE=gnu
 AR?=   ar
+
+.if ${MKEMBED} == "yes"
+DBG=   -Os
+CFLAGS+= -DNDEBUG=1
+.endif
+
 .endif
 
 # Set NBSD_LIBC to either "yes" or "no".