]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/conf/Makefile.template
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.template
index 304d4ae7b97b1fbbdfda22a269414c17a1f655d0..a09b5d2c3df4044d5d1129e4fa68290af182ff12 100644 (file)
@@ -61,6 +61,8 @@ COMP_SUBDIRS = \
 
 %OBJS
 
+%LIBOBJS
+
 %CFILES
 
 %CXXFILES
@@ -130,7 +132,6 @@ uat.o_CFLAGS_ADD += -Wno-implicit-int-conversion
 video_console.o_CFLAGS_ADD += -Wno-implicit-int-conversion
 xcpm_dvfs.o_CFLAGS_ADD += -Wno-implicit-int-conversion
 xcpm_ioctl.o_CFLAGS_ADD += -Wno-implicit-int-conversion
-zalloc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
 # -Wno-shorten-64-to-32
 arm_vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
 backtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
@@ -164,7 +165,6 @@ vm_object.o_CFLAGS_ADD += -Wno-shorten-64-to-32
 vm_shared_region_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
 vm_swapfile_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
 vm_user.o_CFLAGS_ADD += -Wno-shorten-64-to-32
-zalloc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
 # -Wno-sign-conversion
 Diagnostics.o_CFLAGS_ADD += -Wno-sign-conversion
 acpi.o_CFLAGS_ADD += -Wno-sign-conversion
@@ -366,8 +366,6 @@ xcpm_dvfs.o_CFLAGS_ADD += -Wno-sign-conversion
 xcpm_fi.o_CFLAGS_ADD += -Wno-sign-conversion
 xcpm_idle.o_CFLAGS_ADD += -Wno-sign-conversion
 xcpm_ioctl.o_CFLAGS_ADD += -Wno-sign-conversion
-zalloc.o_CFLAGS_ADD += -Wno-sign-conversion
-zcache.o_CFLAGS_ADD += -Wno-sign-conversion
 
 # Rebuild if per-file overrides change
 ${OBJS}: $(firstword $(MAKEFILE_LIST))
@@ -394,7 +392,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