]> git.saurik.com Git - apple/syslog.git/blame - syslogd.tproj/Makefile
syslog-100.2.tar.gz
[apple/syslog.git] / syslogd.tproj / Makefile
CommitLineData
57b0aad2
A
1Project = syslogd
2ProductType = tool
3Install_Dir = /usr/sbin
4
c4fdb7d1 5CFILES = 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
57b0aad2
A
6
7MANPAGES = asl.conf.5 syslogd.8 syslog.conf.5
8#syslogd.sb
9LAUNCHD_PLISTS = com.apple.syslogd.plist
10
11Extra_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
18PRODUCT = $(shell tconf --product)
19ifeq ($(PRODUCT),MacOSX)
20Extra_CC_Flags += -DCONFIG_MAC -DREMOTE_IPV4
21endif
22ifeq ($(PRODUCT),AppleTV)
23Extra_CC_Flags += -DCONFIG_APPLETV -DREMOTE_IPV4
24endif
25ifeq ($(PRODUCT),iPhone)
26Extra_CC_Flags += -DCONFIG_IPHONE -DLOCKDOWN
27endif
28
c4fdb7d1 29Extra_LD_Flags = -dead_strip -L"$(SYMROOT)" -laslcommon -lbsm
57b0aad2
A
30
31include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
32
33after_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
c4fdb7d1 37 codesign -s- $(DSTROOT)/usr/sbin/syslogd
1496e7d1 38 plutil -convert binary1 $(DSTROOT)/System/Library/LaunchDaemons/com.apple.syslogd.plist
c4fdb7d1
A
39 mkfile 8 "$(DSTROOT)"/private/var/log/asl/SweepStore
40 chmod 644 "$(DSTROOT)"/private/var/log/asl/SweepStore