]> git.saurik.com Git - apple/xnu.git/blobdiff - pexpert/conf/Makefile.template
xnu-2422.1.72.tar.gz
[apple/xnu.git] / pexpert / conf / Makefile.template
index 54eb922009155151322f5cad683fa35e2f17e33e..7a8e0038dcc1e9eaacaef9e0b884f9c667964cad 100644 (file)
@@ -5,16 +5,6 @@
 # the terms and conditions for use and redistribution.
 #
 
-#
-# Export IDENT for sub-makefiles
-#
-export IDENT
-
-#
-# XXX: INCFLAGS 
-#
-INCFLAGS_MAKEFILE=  $(INCFLAGS_POSIX)
-
 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
@@ -24,15 +14,12 @@ 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
+CFLAGS+= -include meta_features.h -DPEXPERT_KERNEL_PRIVATE
 
-SFLAGS+= -DKERNEL
+# Objects that don't want -Wcast-align warning (8474835)
+pe_identify_machine.o_CWARNFLAGS_ADD = -Wno-cast-align
 
 #
 # Directories for mig generated files
@@ -45,14 +32,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
@@ -65,13 +44,8 @@ COPYRIGHT_FILES = \
 
 %CFILES
 
-%MFILES
-
 %SFILES
 
-%BFILES
-
-%ORDERED
 %MACHDEP
 
 #
@@ -81,31 +55,19 @@ COPYRIGHT_FILES = \
 #
 ${OBJS}: ${OBJSDEPS}
 
-
-%LOAD
-
 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)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
+       done; ) > $(COMPONENT).filelist
 
-do_depend: do_all
-       ${MD} -u Makedep -f -d `ls *.d`;
-       
-do_all: $(COMPONENT).o
+do_all: $(COMPONENT).filelist
 
-do_build_all: do_depend
+do_build_all:: do_all
 
 %RULES
 
--include Makedep
-
 include $(MakeInc_rule)
 include $(MakeInc_dir)
-