#
# CFLAGS
#
-CFLAGS+= -imacros meta_features.h -DLIBKERN_KERNEL_PRIVATE -DOSALLOCDEBUG=1 \
- -Werror $(CFLAGS_INLINE_CONFIG)
+CFLAGS+= -include meta_features.h -DLIBKERN_KERNEL_PRIVATE -DOSALLOCDEBUG=1 \
+ $(CFLAGS_INLINE_CONFIG)
# zlib is 3rd party source
compress.o_CWARNFLAGS_ADD = -Wno-cast-qual
LDOBJS = $(OBJS)
-$(COMPONENT).o: $(LDOBJS)
+$(COMPONENT).filelist: $(LDOBJS)
+ $(_v)if [ $(BUILD_MACHO_OBJ) -eq 1 ]; then \
+ for hib_file in ${HIB_FILES}; \
+ do \
+ $(SEG_HACK) __HIB $${hib_file} -o $${hib_file}__; \
+ mv $${hib_file}__ $${hib_file} ; \
+ done; \
+ fi
@echo LDFILELIST $(COMPONENT)
$(_v)( for obj in ${LDOBJS}; do \
echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
- done; ) > $(COMPONENT).o
+ done; ) > $(COMPONENT).filelist
-do_all: $(COMPONENT).o
+do_all: $(COMPONENT).filelist
do_depend: do_all
$(_v)${MD} -u Makedep -f -d `ls *.d`