mk: single mk fragment for new libc

. allow commands to use it by setting NEED_NBSDLIBC
	. also add mkfiles to clean and cleandepend so they
	  don't break on missing new mkfiles
This commit is contained in:
Ben Gras
2011-07-27 18:23:36 +02:00
parent 3ca141ab81
commit f614d0015a
6 changed files with 17 additions and 10 deletions
+6
View File
@@ -1,3 +1,9 @@
# Any of the commands can force the new libc being used by
# setting NEED_NBSDLIBC
.if defined(NEED_NBSDLIBC)
.include <minix.newlibc.mk>
.endif
.if (${NBSD_LIBC} != "no")
CPPFLAGS+= -D_MINIX -D_NETBSD_SOURCE -D_MINIX_COMPAT
LDADD+= -lminlib -lcompat_minix -lasyn -lterminfo