]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/conf/Makefile.template
xnu-1228.tar.gz
[apple/xnu.git] / iokit / conf / Makefile.template
index 35daa9e5a8d8d2a9179cca809755a91275d00662..c1c09f5b55d82580e532ddf4d4cb3dd4b861f894 100644 (file)
@@ -24,13 +24,22 @@ include $(MakeInc_cmd)
 include $(MakeInc_def)
 
 #
-# XXX: CFLAGS
+# XXX: CFLAGS   ARM_TODO: added __MBUF_TRANSITION_ for IONetworkingFamily
 #
-CFLAGS+= -DKERNEL -DDRIVER_PRIVATE                             \
+CFLAGS+= -imacros meta_features.h -DKERNEL -DDRIVER_PRIVATE                            \
        -Wall -Wno-four-char-constants -fno-common              \
-       -DIOMATCHDEBUG=1 -DIOALLOCDEBUG=1 -DIOASSERT=0          \
+       -DIOMATCHDEBUG=1 -DIOALLOCDEBUG=1                       \
+       -D__MBUF_TRANSITION_                                    \
+       -imacros meta_features.h $(CFLAGS_INLINE_CONFIG)
 #-DIOKITDEBUG=-1
 
+CWARNFLAGS   += -Wno-unused-parameter -Wno-redundant-decls -Wno-nested-externs -Wno-write-strings
+MWARNFLAGS   += -Wno-unused-parameter -Wno-redundant-decls -Wno-nested-externs -Wno-write-strings
+CXXWARNFLAGS += -Wno-unused-parameter -Wno-redundant-decls -Wno-write-strings -Wno-cast-qual -Wno-shadow
+
+CFLAGS_RELEASE += -DIOASSERT=0
+CFLAGS_DEBUG += -DIOASSERT=1
+
 SFLAGS+= -DKERNEL
 
 #
@@ -44,14 +53,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
@@ -86,16 +87,15 @@ ${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 ${IOKIT_KERNEL_CONFIG} ]
-       $(LD)  $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} vers.o 
+       @echo LD $(COMPONENT)
+       $(_v)$(SEG_HACK) __HIB IOHibernateRestoreKernel.o -o _IOHibernateRestoreKernel.o
+       $(_v)mv _IOHibernateRestoreKernel.o IOHibernateRestoreKernel.o
+       $(_v)$(SEG_HACK) __HIB WKdmDecompress.o -o _WKdmDecompress.o
+       $(_v)mv _WKdmDecompress.o WKdmDecompress.o
+       $(_v)$(LD)  $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} 
 
 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 +106,3 @@ do_build_all: do_depend
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)
-