]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/conf/Makefile.i386
xnu-1228.tar.gz
[apple/xnu.git] / bsd / conf / Makefile.i386
index 2f6232c144643db7c4423f5fa001ec9c641ddde7..07c0222081ba1c8b518f14a9bf36ff7474827b49 100644 (file)
@@ -2,6 +2,129 @@
 #BEGIN  Machine dependent Makefile fragment for i386
 ######################################################################
  
+# Enable -Werror for i386 builds
+CFLAGS+=$(WERROR)
+CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
+
+# Objects that don't compile cleanly:
+OBJS_NO_WERROR =               \
+       vfs_xattr.o             \
+       vfs_fsevents.o  \
+       fifo_vnops.o    \
+       subr_log.o              \
+       ioconf.o                \
+       aescrypt.o              \
+       aeskey.o                \
+       des_setkey.o            \
+       sha2.o                  \
+       vn.o                    \
+       BTreeTreeOps.o          \
+       cd9660_lookup.o         \
+       cd9660_node.o           \
+       cd9660_rrip.o           \
+       cd9660_util.o           \
+       cd9660_vfsops.o         \
+       cd9660_vnops.o          \
+       bsd_init.o              \
+       kern_newsysctl.o        \
+       kern_prot.o             \
+       kpi_socket.o            \
+       kpi_socketfilter.o      \
+       uipc_domain.o           \
+       uipc_proto.o            \
+       uipc_usrreq.o           \
+       ether_if_module.o                       \
+       if_ethersubr.o          \
+       if_gif.o                \
+       if_media.o              \
+       if_stf.o                \
+       kext_net.o              \
+       netisr.o                \
+       rtsock.o                \
+       dhcp_options.o          \
+       if_ether.o              \
+       igmp.o                  \
+       in_bootp.o              \
+       in_cksum.o              \
+       ip_fw2.o                \
+       ip_fw2_compat.o         \
+       kpi_ipfilter.o          \
+       in_gif.o                \
+       in_pcb.o                \
+       ip_divert.o             \
+       ip_dummynet.o           \
+       ip_icmp.o               \
+       ip_input.o              \
+       ip_mroute.o             \
+       ip_output.o             \
+       tcp_input.o             \
+       tcp_subr.o              \
+       tcp_timer.o             \
+       ah_core.o               \
+       esp_core.o              \
+       esp_input.o             \
+       esp_rijndael.o          \
+       in6_gif.o               \
+       in6_proto.o             \
+       in6_src.o               \
+       ip6_output.o            \
+       ipsec.o                 \
+       raw_ip6.o               \
+       key.o                   \
+       keydb.o                 \
+       krpc_subr.o             \
+       ffs_alloc.o             \
+       ffs_balloc.o            \
+       ffs_inode.o             \
+       ffs_subr.o              \
+       ffs_vfsops.o            \
+       ffs_vnops.o             \
+       ufs_attrlist.o          \
+       ufs_bmap.o              \
+       ufs_byte_order.o        \
+       ufs_ihash.o             \
+       ufs_inode.o             \
+       ufs_lockf.o             \
+       ufs_lookup.o            \
+       ufs_quota.o             \
+       ufs_readwrite.o         \
+       ufs_vfsops.o            \
+       ufs_vnops.o             \
+       ux_exception.o          \
+       vfs_journal.o           \
+       vfs_syscalls.o          \
+       sysctl.o                \
+       unix_startup.o          \
+       randomdev.o             \
+       sha1mod.o               \
+       in_arp.o                \
+       vnode_pager.o   \
+       dp_backing_file.o \
+       vm_unix.o               \
+       mem.o                   \
+       km.o                    \
+       init_sysent.o           \
+       drv_dep.o               \
+       dtrace.o                \
+       lockstat.o              \
+       profile_prvd.o          \
+       systrace.o              \
+       blist.o                 \
+       dtrace_glue.o           \
+       fbt.o                   \
+       fbt_x86.o               \
+       sdt.o       \
+       sdt_subr.o       \
+       sdt_x86.o       \
+       dtrace_isa.o            \
+       dis_tables.o            \
+       aes_modes.o
+
+
+OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
+
+$(OBJS_WERROR):                WERROR=-Werror
+
 ######################################################################
 #END    Machine dependent Makefile fragment for i386
 ######################################################################