/
Makefile
104 lines (85 loc) · 3.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# Copyright (c) 2003-2018 Apple Inc. All rights reserved.
#
# Top level makefile for Build & Integration (B&I).
#
# This file is used to facilitate checking the mDNSResponder project directly from git and submitting to B&I at Apple.
#
# The various platform directories contain makefiles or projects specific to that platform.
#
# B&I builds must respect the following target:
# install:
# installsrc:
# installhdrs:
# installapi:
# clean:
#
include $(MAKEFILEPATH)/pb_makefiles/platform.make
MVERS = "mDNSResponder-1096.100.3"
VER =
ifneq ($(strip $(GCC_VERSION)),)
VER = -- GCC_VERSION=$(GCC_VERSION)
endif
echo "VER = $(VER)"
projectdir := $(SRCROOT)/mDNSMacOSX
buildsettings := OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT)
.PHONY: install installSome installEmpty installExtras SystemLibraries installhdrs installapi installsrc java clean
# B&I install build targets
#
# For the mDNSResponder build alias, the make target used by B&I depends on the platform:
#
# Platform Make Target
# -------- -----------
# osx install
# ios installSome
# atv installSome
# watch installSome
#
# For the mDNSResponderSystemLibraries and mDNSResponderSystemLibraries_sim build aliases, B&I uses the SystemLibraries
# target for all platforms.
install:
ifeq ($(RC_ProjectName), mDNSResponderServices)
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services' $(VER)
else
cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER)
endif
installSome:
ifeq ($(RC_ProjectName), mDNSResponderServices)
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services' $(VER)
else
cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER)
endif
installEmpty:
mkdir -p $(DSTROOT)/AppleInternal
installExtras:
ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx)
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-macOS' $(VER)
else ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), ios)
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-iOS' $(VER)
else
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras' $(VER)
endif
SystemLibraries:
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target SystemLibraries $(VER)
# B&I installhdrs build targets
installhdrs::
ifeq ($(RC_ProjectName), mDNSResponderServices)
cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target 'Build Services' $(VER)
else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),)
cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target SystemLibraries $(VER)
endif
# B&I installapi build targets
installapi:
ifeq ($(RC_ProjectName), mDNSResponderServices)
cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target 'Build Services' $(VER)
else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),)
cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target SystemLibrariesDynamic $(VER)
endif
# Misc. targets
installsrc:
ditto . '$(SRCROOT)'
rm -rf '$(SRCROOT)/mDNSWindows' '$(SRCROOT)/Clients/FirefoxExtension'
java:
cd '$(projectdir)'; xcodebuild install $(buildsettings) -target libjdns_sd.jnilib $(VER)
clean::
echo clean