X-Git-Url: https://git.saurik.com/apple/syslog.git/blobdiff_plain/5dd30d768c7cd795c2a3b974a6a1809dd8a3becf..c4fdb7d114b21b1b97b3777dfb8a8053693e7a91:/syslogd.tproj/Makefile?ds=inline diff --git a/syslogd.tproj/Makefile b/syslogd.tproj/Makefile index 3a1fee2..2aa8a32 100644 --- a/syslogd.tproj/Makefile +++ b/syslogd.tproj/Makefile @@ -1,46 +1,39 @@ -# -# 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 + mkfile 8 "$(DSTROOT)"/private/var/log/asl/SweepStore + chmod 644 "$(DSTROOT)"/private/var/log/asl/SweepStore