X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0b4e3aa066abc0728aacb4bbeb86f53f9737156e..b0d623f7f2ae71ed96e60569f61f9a9a27016e80:/pexpert/conf/Makefile.template diff --git a/pexpert/conf/Makefile.template b/pexpert/conf/Makefile.template index 624ab530c..1207442f0 100644 --- a/pexpert/conf/Makefile.template +++ b/pexpert/conf/Makefile.template @@ -11,7 +11,7 @@ export IDENT # -# XXX: INCFLAGS +# INCFLAGS # INCFLAGS_MAKEFILE= $(INCFLAGS_POSIX) @@ -24,15 +24,11 @@ include $(MakeInc_cmd) 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+= -imacros meta_features.h -DPEXPERT_KERNEL_PRIVATE \ + -Werror $(CFLAGS_INLINE_CONFIG) # # Directories for mig generated files @@ -45,14 +41,6 @@ COMP_SUBDIRS = # .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 @@ -87,16 +75,13 @@ ${OBJS}: ${OBJSDEPS} 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 + @echo LDFILELIST $(COMPONENT) + $(_v)( for obj in ${LDOBJS}; do \ + echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \ + done; ) > $(COMPONENT).o do_depend: do_all - ${MD} -u Makedep -f -d `ls *.d`; + $(_v)${MD} -u Makedep -f -d `ls *.d`; do_all: $(COMPONENT).o @@ -106,4 +91,3 @@ do_build_all: do_depend include $(MakeInc_rule) include $(MakeInc_dir) -