2 # Copyright (c) 2003-2018 Apple Inc. All rights reserved.
4 # Top level makefile for Build & Integration (B&I).
6 # This file is used to facilitate checking the mDNSResponder project directly from git and submitting to B&I at Apple.
8 # The various platform directories contain makefiles or projects specific to that platform.
10 # B&I builds must respect the following target:
18 include $(MAKEFILEPATH)/pb_makefiles/platform.make
20 MVERS = "mDNSResponder-1096.60.2"
23 ifneq ($(strip $(GCC_VERSION)),)
24 VER = -- GCC_VERSION=$(GCC_VERSION)
28 projectdir := $(SRCROOT)/mDNSMacOSX
29 buildsettings := OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT)
31 .PHONY: install installSome installEmpty installExtras SystemLibraries installhdrs installapi installsrc java clean
33 # B&I install build targets
35 # For the mDNSResponder build alias, the make target used by B&I depends on the platform:
37 # Platform Make Target
38 # -------- -----------
44 # For the mDNSResponderSystemLibraries and mDNSResponderSystemLibraries_sim build aliases, B&I uses the SystemLibraries
45 # target for all platforms.
48 ifeq ($(RC_ProjectName), mDNSResponderServices)
49 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services' $(VER)
51 cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER)
55 ifeq ($(RC_ProjectName), mDNSResponderServices)
56 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services' $(VER)
58 cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER)
62 mkdir -p $(DSTROOT)/AppleInternal
65 ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx)
66 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-macOS' $(VER)
67 else ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), ios)
68 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-iOS' $(VER)
70 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras' $(VER)
74 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target SystemLibraries $(VER)
76 # B&I installhdrs build targets
79 ifeq ($(RC_ProjectName), mDNSResponderServices)
80 cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target 'Build Services' $(VER)
81 else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),)
82 cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target SystemLibraries $(VER)
85 # B&I installapi build targets
88 ifeq ($(RC_ProjectName), mDNSResponderServices)
89 cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target 'Build Services' $(VER)
90 else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),)
91 cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target SystemLibrariesDynamic $(VER)
98 rm -rf '$(SRCROOT)/mDNSWindows' '$(SRCROOT)/Clients/FirefoxExtension'
101 cd '$(projectdir)'; xcodebuild install $(buildsettings) -target libjdns_sd.jnilib $(VER)