]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/conf/Makefile.template
xnu-1504.7.4.tar.gz
[apple/xnu.git] / iokit / conf / Makefile.template
index 80dfe43284445d07072cedd579ae772d47626ba8..55d99d413b752cac6e67d6b3162f33163fbbc0b5 100644 (file)
@@ -86,10 +86,11 @@ ${OBJS}: ${OBJSDEPS}
 LDOBJS = $(OBJS)
 
 $(COMPONENT).o: $(LDOBJS)
 LDOBJS = $(OBJS)
 
 $(COMPONENT).o: $(LDOBJS)
-       $(_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)for hib_file in ${HIB_FILES};              \
+       do      \
+                $(SEG_HACK) __HIB $${hib_file} -o $${hib_file}__; \
+                mv $${hib_file}__ $${hib_file} ; \
+       done;
        @echo LDFILELIST $(COMPONENT)
        $(_v)( for obj in ${LDOBJS}; do \
                 echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
        @echo LDFILELIST $(COMPONENT)
        $(_v)( for obj in ${LDOBJS}; do \
                 echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \