]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/conf/Makefile.template
xnu-7195.81.3.tar.gz
[apple/xnu.git] / libkern / conf / Makefile.template
index 077b90f9b03625edae0af57f94fe88fae76fc59f..2f78dc30e0c7cce44ee363a3d1ca1c35c4de42bd 100644 (file)
@@ -43,6 +43,8 @@ COMP_SUBDIRS =
 
 %OBJS
 
+%LIBOBJS
+
 %CFILES
 
 %CXXFILES
@@ -157,7 +159,17 @@ $(COMPONENT).filelist: $(OBJS)
                 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
        done > $(COMPONENT).filelist
 
+$(COMPONENT).libfilelist: $(LIBOBJS)
+       @$(LOG_LDFILELIST) "lib$(COMPONENT)"
+       $(_v)for obj in ${LIBOBJS}; do  \
+                $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
+       done > $(COMPONENT).libfilelist
+
+ifeq ($(RC_ProjectName),xnu_libraries)
+do_all: $(COMPONENT).libfilelist
+else
 do_all: $(COMPONENT).filelist
+endif
 
 do_build_all:: do_all