147e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#
247e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# Top level makefile for Build & Integration.
347e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# 
447e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# This file is used to facilitate checking the mDNSResponder project
547e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# directly out of CVS and submitting to B&I at Apple.
647e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#
747e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# The various platform directories contain makefiles or projects
847e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt# specific to that platform.
947e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#
1047e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#    B&I builds must respect the following target:
1147e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#         install:
1247e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#         installsrc:
1347e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#         installhdrs:
1447e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#         clean:
1547e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt#
1647e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
1747e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwaltinclude /Developer/Makefiles/pb_makefiles/platform.make
1847e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
1947e4cebad7397422144bb03a21f3f7682c062c4aRobert GreenwaltMVERS = "mDNSResponder-320.10.80"
2047e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
2147e4cebad7397422144bb03a21f3f7682c062c4aRobert GreenwaltDDNSWRITECONFIG = "$(DSTROOT)/Library/Application Support/Bonjour/ddnswriteconfig"
2247e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
2347e4cebad7397422144bb03a21f3f7682c062c4aRobert GreenwaltinstallSome:
2447e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	cd "$(SRCROOT)/mDNSMacOSX"; xcodebuild install     OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT) -target Build\ Some
2547e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
2647e4cebad7397422144bb03a21f3f7682c062c4aRobert GreenwaltSystemLibraries:
2747e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	cd "$(SRCROOT)/mDNSMacOSX"; xcodebuild install     OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT) -target SystemLibraries
2847e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
2947e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwaltinstall:
3047e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	cd "$(SRCROOT)/mDNSMacOSX"; xcodebuild install     OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT)
3147e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	# Make sure ddnswriteconfig is owned by root:wheel, then make it setuid root executable
3247e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	if test -e $(DDNSWRITECONFIG) ; then chown 0:80 $(DDNSWRITECONFIG) ; chmod 4555 $(DDNSWRITECONFIG) ; fi
3347e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
3447e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwaltinstallsrc:
3547e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	ditto . "$(SRCROOT)"
3647e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
3747e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwaltinstallhdrs::
3847e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	cd "$(SRCROOT)/mDNSMacOSX"; xcodebuild installhdrs OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT)  -target SystemLibraries
3947e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt
4047e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwaltclean::
4147e4cebad7397422144bb03a21f3f7682c062c4aRobert Greenwalt	echo clean
42