export IDENT
#
-# XXX: INCFLAGS
+# INCFLAGS
#
INCFLAGS_MAKEFILE= $(INCFLAGS_POSIX)
include $(MakeInc_def)
#
-# XXX: CFLAGS
+# CFLAGS
#
-# -D_KERNEL_BUILD -DKERNEL_BUILD -DARCH_PRIVATE -DBSD_BUILD -DMACH_KERNEL
#
-CFLAGS+= -DPEXPERT_KERNEL_PRIVATE -DKERNEL -DDRIVER_PRIVATE -DNCPUS=1 \
- -Wall -Wno-four-char-constants -fno-common \
- -DRelease3CompatibilityBuild
-
-SFLAGS+= -DKERNEL
+CFLAGS+= -include meta_features.h -DPEXPERT_KERNEL_PRIVATE \
+ $(CFLAGS_INLINE_CONFIG)
#
# Directories for mig generated files
#
.PRECIOUS: Makefile
-VERSION_FILES= \
- $(SOURCE_DIR)/$(COMPONENT)/conf/version.major \
- $(SOURCE_DIR)/$(COMPONENT)/conf/version.minor \
- $(SOURCE_DIR)/$(COMPONENT)/conf/version.variant
-
-COPYRIGHT_FILES = \
- $(SOURCE_DIR)/$(COMPONENT)/conf/copyright
-
#
# Theses macros are filled in by the config program depending on the
# current configuration. The MACHDEP macro is replaced by the
LDOBJS = $(OBJS)
-$(COMPONENT).o: $(LDOBJS)
- @echo "creating $(COMPONENT).o"
- $(RM) $(RMFLAGS) vers.c
- $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/newvers \
- `$(CAT) ${VERSION_FILES}` ${COPYRIGHT_FILES}
- ${KCC} $(CFLAGS) $(INCLUDES) -c vers.c
- @echo [ updating $(COMPONENT).o ${PEXPERT_KERNEL_CONFIG} ]
- $(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} vers.o
+$(COMPONENT).filelist: $(LDOBJS)
+ @echo LDFILELIST $(COMPONENT)
+ $(_v)( for obj in ${LDOBJS}; do \
+ echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
+ done; ) > $(COMPONENT).filelist
do_depend: do_all
- ${MD} -u Makedep -f -d `ls *.d`;
+ $(_v)${MD} -u Makedep -f -d `ls *.d`;
-do_all: $(COMPONENT).o
+do_all: $(COMPONENT).filelist
do_build_all: do_depend
%RULES
--include Makedep
-
include $(MakeInc_rule)
include $(MakeInc_dir)
-