| @@ -1,24 +1,24 @@ | | | @@ -1,24 +1,24 @@ |
1 | # $NetBSD: bsd.sys.mk,v 1.233 2014/01/10 16:16:57 christos Exp $ | | 1 | # $NetBSD: bsd.sys.mk,v 1.234 2014/01/10 16:20:14 christos Exp $ |
2 | # | | 2 | # |
3 | # Build definitions used for NetBSD source tree builds. | | 3 | # Build definitions used for NetBSD source tree builds. |
4 | | | 4 | |
5 | .if !defined(_BSD_SYS_MK_) | | 5 | .if !defined(_BSD_SYS_MK_) |
6 | _BSD_SYS_MK_=1 | | 6 | _BSD_SYS_MK_=1 |
7 | | | 7 | |
8 | .if !empty(.INCLUDEDFROMFILE:MMakefile*) | | 8 | #.if !empty(.INCLUDEDFROMFILE:MMakefile*) |
9 | error: | | 9 | #error: |
10 | @(echo "bsd.sys.mk should not be included from Makefiles" >& 2; exit 1) | | 10 | # @(echo "bsd.sys.mk should not be included from Makefiles" >& 2; exit 1) |
11 | .endif | | 11 | #.endif |
12 | | | 12 | |
13 | .if ${MKREPRO:Uno} == "yes" | | 13 | .if ${MKREPRO:Uno} == "yes" |
14 | CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src | | 14 | CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src |
15 | CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/ | | 15 | CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/ |
16 | CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc | | 16 | CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc |
17 | .endif | | 17 | .endif |
18 | | | 18 | |
19 | # Enable c99 mode by default. | | 19 | # Enable c99 mode by default. |
20 | # This has the side effect of complaining for missing prototypes | | 20 | # This has the side effect of complaining for missing prototypes |
21 | # implicit type declarations and missing return statements. | | 21 | # implicit type declarations and missing return statements. |
22 | .if defined(HAVE_GCC) || defined(HAVE_LLVM) | | 22 | .if defined(HAVE_GCC) || defined(HAVE_LLVM) |
23 | CFLAGS+= -std=gnu99 | | 23 | CFLAGS+= -std=gnu99 |
24 | .endif | | 24 | .endif |