export IDENT
#
-# XXX: INCFLAGS
+# INCFLAGS
#
INCFLAGS_MAKEFILE=
include $(MakeInc_def)
#
-# XXX: CFLAGS
+# CFLAGS
#
-CFLAGS+= -imacros meta_features.h -DKERNEL -DLIBSA_KERNEL_PRIVATE \
- -Wall -Wno-four-char-constants -fno-common $(CFLAGS_INLINE_CONFIG)
-
-SFLAGS+= -DKERNEL
+CFLAGS+= -imacros meta_features.h -DLIBSA_KERNEL_PRIVATE \
+ -Werror $(CFLAGS_INLINE_CONFIG)
#
# Directories for mig generated files
LDOBJS = $(OBJS)
$(COMPONENT).o: $(LDOBJS)
- @echo LD $(COMPONENT)
- $(_v)$(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} $(LIBKLD)
- $(_v)$(SEG_HACK) __KLD $(COMPONENT).o -o $(COMPONENT)_kld.o
- $(_v)$(LD) $(LDFLAGS_COMPONENT) $(COMPONENT)_kld.o -o $(COMPONENT).o
+ $(_v)for kld_file in ${LDOBJS}; do \
+ $(SEG_HACK) __KLD $${kld_file} -o $${kld_file}__; \
+ mv $${kld_file}__ $${kld_file} ; \
+ done;
+ @echo LDFILELIST $(COMPONENT)
+ $(_v)( for obj in ${LDOBJS}; do \
+ echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
+ done; ) > $(COMPONENT).o
do_all: $(COMPONENT).o