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