]> git.saurik.com Git - apple/syslog.git/blob - syslogd.tproj/Makefile
6f40d646a4bbfe00ce33cc1f72ef216c119390c0
[apple/syslog.git] / syslogd.tproj / Makefile
1 Project = syslogd
2 ProductType = tool
3 Install_Dir = /usr/sbin
4
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
6
7 MANPAGES = asl.conf.5 syslogd.8 syslog.conf.5
8 #syslogd.sb
9 LAUNCHD_PLISTS = com.apple.syslogd.plist
10
11 Extra_CC_Flags = -Wall -mdynamic-no-pic \
12 -DINET6 \
13 -I"$(OBJROOT)"/aslcommon \
14 -I../aslcommon \
15 -I"$(SDKROOT)"/System/Library/Frameworks/System.framework/PrivateHeaders
16
17 # Determine product configuartion
18 PRODUCT = $(shell tconf --product)
19 ifeq ($(PRODUCT),MacOSX)
20 Extra_CC_Flags += -DCONFIG_MAC -DREMOTE_IPV4
21 endif
22 ifeq ($(PRODUCT),AppleTV)
23 Extra_CC_Flags += -DCONFIG_APPLETV -DREMOTE_IPV4
24 endif
25 ifeq ($(PRODUCT),iPhone)
26 Extra_CC_Flags += -DCONFIG_IPHONE -DLOCKDOWN
27 endif
28
29 Extra_LD_Flags = -dead_strip -L"$(SYMROOT)" -laslcommon -lbsm
30
31 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
32
33 after_install:
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