]> git.saurik.com Git - apple/syslog.git/blobdiff - syslogd.tproj/Makefile
syslog-100.2.tar.gz
[apple/syslog.git] / syslogd.tproj / Makefile
index 3a1fee2dd1b6f1a099ffe56dce356db25014f3d3..6f40d646a4bbfe00ce33cc1f72ef216c119390c0 100644 (file)
@@ -1,46 +1,40 @@
-#
-# Generated by the NeXT Project Builder.
-#
-# NOTE: Do NOT change this file -- Project Builder maintains it.
-#
-# Put all of your customizations in files called Makefile.preamble
-# and Makefile.postamble (both optional), and Makefile will include them.
-#
-
-NAME = syslogd
-
-PROJECTVERSION = 2.8
-PROJECT_TYPE = Tool
-
-HFILES = daemon.h
-
-CFILES = asl_action.c asl_in.c bsd_in.c bsd_out.c daemon.c dbserver.c klog_in.c syslogd.c udp_in.c
-
-OTHERSRCS = Makefile.preamble Makefile Makefile.postamble asl.conf.5 syslogd.8 syslog.conf.5 syslogd.sb com.apple.syslogd.plist
-
-MAKEFILEDIR = $(MAKEFILEPATH)/pb_makefiles
-CODE_GEN_STYLE = DYNAMIC
-MAKEFILE = tool.make
-NEXTSTEP_INSTALLDIR = /usr/sbin
-WINDOWS_INSTALLDIR = /usr/sbin
-PDO_UNIX_INSTALLDIR = /usr/sbin
-LIBS = -laslcommon
-DEBUG_LIBS = $(LIBS)
-PROF_LIBS = $(LIBS)
-
-NEXTSTEP_OBJCPLUS_COMPILER = /usr/bin/cc
-WINDOWS_OBJCPLUS_COMPILER = $(DEVDIR)/gcc
-PDO_UNIX_OBJCPLUS_COMPILER = $(NEXTDEV_BIN)/gcc
-NEXTSTEP_JAVA_COMPILER = /usr/bin/javac
-WINDOWS_JAVA_COMPILER = $(JDKBINDIR)/javac.exe
-PDO_UNIX_JAVA_COMPILER = $(NEXTDEV_BIN)/javac
-
-include $(MAKEFILEDIR)/platform.make
-
--include Makefile.preamble
-
-include $(MAKEFILEDIR)/$(MAKEFILE)
-
--include Makefile.postamble
-
--include Makefile.dependencies
+Project = syslogd
+ProductType = tool
+Install_Dir = /usr/sbin
+
+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
+
+MANPAGES = asl.conf.5 syslogd.8 syslog.conf.5
+#syslogd.sb
+LAUNCHD_PLISTS = com.apple.syslogd.plist
+
+Extra_CC_Flags = -Wall -mdynamic-no-pic \
+       -DINET6 \
+       -I"$(OBJROOT)"/aslcommon \
+       -I../aslcommon \
+       -I"$(SDKROOT)"/System/Library/Frameworks/System.framework/PrivateHeaders
+
+# Determine product configuartion
+PRODUCT = $(shell tconf --product)
+ifeq ($(PRODUCT),MacOSX)
+Extra_CC_Flags += -DCONFIG_MAC -DREMOTE_IPV4
+endif
+ifeq ($(PRODUCT),AppleTV)
+Extra_CC_Flags += -DCONFIG_APPLETV -DREMOTE_IPV4
+endif
+ifeq ($(PRODUCT),iPhone)
+Extra_CC_Flags += -DCONFIG_IPHONE -DLOCKDOWN
+endif
+
+Extra_LD_Flags = -dead_strip -L"$(SYMROOT)" -laslcommon -lbsm
+
+include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+
+after_install:
+       $(INSTALL_DIRECTORY) "$(DSTROOT)"/private/var/log/asl
+       $(INSTALL_DIRECTORY) "$(DSTROOT)"/usr/share/sandbox
+       $(INSTALL_FILE) syslogd.sb "$(DSTROOT)"/usr/share/sandbox
+       codesign -s- $(DSTROOT)/usr/sbin/syslogd
+       plutil -convert binary1 $(DSTROOT)/System/Library/LaunchDaemons/com.apple.syslogd.plist
+       mkfile 8 "$(DSTROOT)"/private/var/log/asl/SweepStore
+       chmod 644 "$(DSTROOT)"/private/var/log/asl/SweepStore