3 Install_Dir = /usr/sbin
5 CFILES = asl_action.c asl_in.c bb_convert.c bsd_in.c bsd_out.c daemon.c dbserver.c klog_in.c remote.c syslogd.c udp_in.c
7 MANPAGES = asl.conf.5 syslogd.8 syslog.conf.5
9 LAUNCHD_PLISTS = com.apple.syslogd.plist
11 Extra_CC_Flags = -Wall -mdynamic-no-pic \
13 -I"$(OBJROOT)"/aslcommon \
15 -I"$(SDKROOT)"/System/Library/Frameworks/System.framework/PrivateHeaders
17 # Determine product configuartion
18 PRODUCT = $(shell tconf --product)
19 ifeq ($(PRODUCT),MacOSX)
20 Extra_CC_Flags += -DCONFIG_MAC -DREMOTE_IPV4
22 ifeq ($(PRODUCT),AppleTV)
23 Extra_CC_Flags += -DCONFIG_APPLETV -DREMOTE_IPV4
25 ifeq ($(PRODUCT),iPhone)
26 Extra_CC_Flags += -DCONFIG_IPHONE -DLOCKDOWN
29 Extra_LD_Flags = -dead_strip -L"$(SYMROOT)" -laslcommon -lbsm
31 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
34 $(INSTALL_DIRECTORY) "$(DSTROOT)"/private/var/log/asl
35 $(INSTALL_DIRECTORY) "$(DSTROOT)"/usr/share/sandbox
36 $(INSTALL_FILE) syslogd.sb "$(DSTROOT)"/usr/share/sandbox
37 codesign -s- $(DSTROOT)/usr/sbin/syslogd
38 plutil -convert binary1 $(DSTROOT)/System/Library/LaunchDaemons/com.apple.syslogd.plist
39 mkfile 8 "$(DSTROOT)"/private/var/log/asl/SweepStore
40 chmod 644 "$(DSTROOT)"/private/var/log/asl/SweepStore