Build system update

- Added default build flags:
  -Wall -Wstrict-prototypes -Werror -Wshadow
- Added missing Makefile's for include/ subdirectories.
This commit is contained in:
Brian Behlendorf
2009-02-12 14:45:22 -08:00
parent 37db7d8cf9
commit f6c5d4ff88
32 changed files with 3613 additions and 76 deletions
+23 -11
View File
@@ -79,6 +79,7 @@ TOPDIR=`/bin/pwd`
# Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build
KERNELMAKE_PARAMS=
KERNELCPPFLAGS="${KERNELCPPFLAGS} -I$TOPDIR -I$TOPDIR/include"
KERNELCPPFLAGS="${KERNELCPPFLAGS} -Wstrict-prototypes -Werror -Wshadow"
if test "${LINUX_OBJ}" != "${LINUX}"; then
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
@@ -88,16 +89,27 @@ AC_SUBST(KERNELMAKE_PARAMS)
AC_SUBST(KERNELCPPFLAGS)
AC_SUBST(KERNELCFLAGS)
AC_CONFIG_FILES([ Makefile
lib/Makefile
cmd/Makefile
module/Makefile
module/spl/Makefile
module/splat/Makefile
include/Makefile
include/sys/Makefile
scripts/Makefile
scripts/spl.spec
])
AC_CONFIG_FILES([
Makefile
lib/Makefile
cmd/Makefile
module/Makefile
module/spl/Makefile
module/splat/Makefile
include/Makefile
include/asm/Makefile
include/fs/Makefile
include/linux/Makefile
include/rpc/Makefile
include/sharefs/Makefile
include/sys/Makefile
include/sys/fm/Makefile
include/sys/fs/Makefile
include/sys/sysevent/Makefile
include/util/Makefile
include/vm/Makefile
scripts/Makefile
scripts/spl.spec
])
AC_OUTPUT