]> git.saurik.com Git - apple/system_cmds.git/blobdiff - dynamic_pager.tproj/Makefile
system_cmds-496.tar.gz
[apple/system_cmds.git] / dynamic_pager.tproj / Makefile
index 24bf360c03b0a17f95cb36c4e6412ace8b833647..dc5ae6a642798fca379b915358b6feaa17d4a560 100644 (file)
@@ -8,18 +8,22 @@ USERDEFS = backing_store_alerts.defs
 MANPAGES = dynamic_pager.8
 LAUNCHD_PLISTS = com.apple.dynamic_pager.plist
 
-Extra_CC_Flags = -no-cpp-precomp -DNO_DIRECT_RPC
+Extra_CC_Flags = -mdynamic-no-pic -Wall -Werror
+Extra_LD_Flags = -dead_strip
 
-Extra_LD_Flags = -framework CoreFoundation -framework IOKit
-Extra_MIG_Flags = -no-cpp-precomp -R -untyped -DNO_DIRECT_RPC
+Extra_CC_Flags += -DNO_DIRECT_RPC
+
+Extra_Frameworks += -framework CoreFoundation -framework IOKit
+Extra_MIG_Flags = -R -untyped -DNO_DIRECT_RPC
 
 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
 
 Embedded=$(shell tconf --test TARGET_OS_EMBEDDED)
-        
+
 after_install:
 ifeq "$(Embedded)" "YES"
        /usr/libexec/PlistBuddy -x \
        -c "Add :Disabled bool true" \
        "$(DSTROOT)/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist"
 endif
+       plutil -convert binary1 "$(DSTROOT)/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist"