export IDENT
#
-# XXX: INCFLAGS
+# INCFLAGS
#
INCFLAGS_MAKEFILE=
include $(MakeInc_def)
#
-# XXX: CFLAGS
+# CFLAGS
#
-CFLAGS+= -imacros meta_features.h -DKERNEL -DLIBKERN_KERNEL_PRIVATE -DOSALLOCDEBUG=1 \
- -Wall -Wno-four-char-constants -fno-common $(CFLAGS_INLINE_CONFIG)
+CFLAGS+= -imacros meta_features.h -DLIBKERN_KERNEL_PRIVATE -DOSALLOCDEBUG=1 \
+ -Werror $(CFLAGS_INLINE_CONFIG)
-SFLAGS+= -DKERNEL
+# zlib is 3rd party source
+compress.o_CWARNFLAGS_ADD = -Wno-cast-qual
+deflate.o_CWARNFLAGS_ADD = -Wno-cast-qual
+infback.o_CWARNFLAGS_ADD = -Wno-cast-qual
+inffast.o_CWARNFLAGS_ADD = -Wno-cast-qual
+inflate.o_CWARNFLAGS_ADD = -Wno-cast-qual
+trees.o_CWARNFLAGS_ADD = -Wno-cast-qual
+uncompr.o_CWARNFLAGS_ADD = -Wno-cast-qual
+
+# warnings in bison-generated code
+OSUnserializeXML.cpo_CXXWARNFLAGS_ADD = -Wno-uninitialized
#
# Directories for mig generated files
LDOBJS = $(OBJS)
$(COMPONENT).o: $(LDOBJS)
- @echo LD $(COMPONENT)
- $(_v)$(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS}
+ @echo LDFILELIST $(COMPONENT)
+ $(_v)( for obj in ${LDOBJS}; do \
+ echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
+ done; ) > $(COMPONENT).o
do_all: $(COMPONENT).o