]>
Commit | Line | Data |
---|---|---|
fdbff003 A |
1 | ## |
2 | # Standard Variables | |
51ef2a1e A |
3 | #ifdef BSDMAKESTYLE |
4 | # | |
5 | # (Created from /Developer/Makefiles/CoreOS/Standard/Variables.make) | |
6 | #endif | |
fdbff003 A |
7 | # |
8 | # Wilfredo Sanchez | wsanchez@apple.com | |
9 | # Copyright (c) 1997-1999 Apple Computer, Inc. | |
10 | # | |
11 | # @APPLE_LICENSE_HEADER_START@ | |
12 | # | |
51ef2a1e | 13 | # Portions Copyright (c) 1999-2009 Apple Inc. All Rights |
fdbff003 A |
14 | # Reserved. This file contains Original Code and/or Modifications of |
15 | # Original Code as defined in and that are subject to the Apple Public | |
16 | # Source License Version 1.1 (the "License"). You may not use this file | |
17 | # except in compliance with the License. Please obtain a copy of the | |
18 | # License at http://www.apple.com/publicsource and read it before using | |
19 | # this file. | |
20 | # | |
21 | # The Original Code and all software distributed under the License are | |
22 | # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
23 | # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
24 | # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
25 | # FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the | |
26 | # License for the specific language governing rights and limitations | |
27 | # under the License. | |
28 | # | |
29 | # @APPLE_LICENSE_HEADER_END@ | |
30 | ## | |
31 | ||
32 | ## | |
33 | # Where to find Makefiles | |
34 | ## | |
51ef2a1e A |
35 | #ifdef BSDMAKESTYLE |
36 | MAKEFILEPATH = /usr/share/mk | |
37 | .ifndef CoreOSMakefiles | |
38 | #else | |
fdbff003 | 39 | ifndef CoreOSMakefiles |
51ef2a1e | 40 | #endif |
fdbff003 | 41 | CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS |
51ef2a1e A |
42 | #ifdef BSDMAKESTYLE |
43 | .else | |
44 | #else | |
fdbff003 | 45 | else |
51ef2a1e A |
46 | #endif |
47 | #ifdef BSDMAKESTYLE | |
48 | CoreOSMakefiles != cd $(CoreOSMakefiles) && pwd | |
49 | #else | |
fdbff003 | 50 | CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd) |
51ef2a1e A |
51 | #endif |
52 | #ifdef BSDMAKESTYLE | |
53 | .endif | |
54 | #else | |
fdbff003 | 55 | endif |
51ef2a1e | 56 | #endif |
fdbff003 A |
57 | |
58 | ## | |
59 | # Verbosity | |
60 | ## | |
51ef2a1e | 61 | #ifdef BSDMAKESTYLE |
97ccb024 | 62 | .if defined(RC_XBS) && $(RC_XBS) == YES |
51ef2a1e | 63 | #else |
97ccb024 | 64 | ifeq ($(RC_XBS),YES) |
51ef2a1e | 65 | #endif |
fdbff003 | 66 | VERBOSE = YES |
51ef2a1e A |
67 | #ifdef BSDMAKESTYLE |
68 | .else | |
69 | #else | |
fdbff003 | 70 | else |
51ef2a1e | 71 | #endif |
fdbff003 | 72 | VERBOSE = NO |
51ef2a1e A |
73 | #ifdef BSDMAKESTYLE |
74 | .endif | |
75 | #else | |
fdbff003 | 76 | endif |
51ef2a1e | 77 | #endif |
fdbff003 | 78 | |
51ef2a1e A |
79 | #ifdef BSDMAKESTYLE |
80 | _v = $(VERBOSE:S/YES//:S/NO/@/) | |
81 | #else | |
fdbff003 | 82 | _v = $(subst NO,@,$(subst YES,,$(VERBOSE))) |
51ef2a1e A |
83 | #endif |
84 | #ifdef BSDMAKESTYLE | |
85 | _q = $(VERBOSE:S/NO//:S/YES/@/) | |
86 | #else | |
fdbff003 | 87 | _q = $(subst YES,@,$(subst NO,,$(VERBOSE))) |
51ef2a1e | 88 | #endif |
fdbff003 A |
89 | |
90 | ## | |
91 | # Working Directory | |
92 | ## | |
51ef2a1e A |
93 | #ifdef BSDMAKESTYLE |
94 | WD != pwd | |
95 | #else | |
fdbff003 | 96 | WD := $(shell pwd) |
51ef2a1e | 97 | #endif |
fdbff003 A |
98 | |
99 | ## | |
100 | # User | |
101 | ## | |
51ef2a1e A |
102 | #ifdef BSDMAKESTYLE |
103 | USER != whoami | |
104 | #else | |
fdbff003 | 105 | USER = $(shell whoami) |
51ef2a1e | 106 | #endif |
fdbff003 A |
107 | |
108 | ## | |
109 | # Host Platform | |
110 | ## | |
51ef2a1e A |
111 | #ifdef BSDMAKESTYLE |
112 | .if !exists($(UNAME)) | |
113 | #else | |
fdbff003 | 114 | ifeq ($(wildcard $(UNAME)),) |
51ef2a1e | 115 | #endif |
fdbff003 A |
116 | OSName := unknown |
117 | OSVersion := unknown | |
51ef2a1e A |
118 | #ifdef BSDMAKESTYLE |
119 | .else | |
120 | #else | |
fdbff003 | 121 | else |
51ef2a1e A |
122 | #endif |
123 | #ifdef BSDMAKESTYLE | |
124 | OSName != $(UNAME) -s | |
125 | #else | |
fdbff003 | 126 | OSName := $(shell $(UNAME) -s) |
51ef2a1e A |
127 | #endif |
128 | #ifdef BSDMAKESTYLE | |
129 | OSVersion != $(UNAME) -r | |
130 | #else | |
fdbff003 | 131 | OSVersion := $(shell $(UNAME) -r) |
51ef2a1e A |
132 | #endif |
133 | #ifdef BSDMAKESTYLE | |
134 | .endif | |
135 | #else | |
fdbff003 | 136 | endif |
51ef2a1e | 137 | #endif |
fdbff003 A |
138 | |
139 | ## | |
140 | # Find Garbage | |
141 | ## | |
90a5ffcc | 142 | Cruft = CVS RCS SCCS *~ .*~ .nfs\* .*.wmd .svn .DS_Store .git |
fdbff003 | 143 | Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print |
90a5ffcc | 144 | Tar_Cruft = $(Cruft:%=--exclude '%') |
fdbff003 A |
145 | |
146 | ## | |
147 | # Install | |
148 | ## | |
149 | Install_User = root | |
150 | Install_File_User = $(Install_User) | |
151 | Install_Program_User = $(Install_User) | |
152 | Install_Directory_User = $(Install_User) | |
153 | Install_Group = wheel | |
154 | Install_File_Group = $(Install_Group) | |
155 | Install_Program_Group = $(Install_Group) | |
156 | Install_Directory_Group = $(Install_Group) | |
157 | Install_Mask = 0022 | |
158 | Install_File_Mode = 0444 | |
159 | Install_Program_Mode = 0555 | |
160 | Install_Directory_Mode = 0755 | |
161 | ||
162 | ## | |
163 | # Locations | |
164 | ## | |
165 | AUTOMOUNTDIR = $(NSNETWORKDIR)/Servers | |
166 | BINDIR = /bin | |
167 | CORESDIR = /private/cores | |
168 | DEVDIR = /dev | |
169 | ETCDIR = /private/etc | |
170 | LIBDIR = /lib | |
171 | LIBEXECDIR = $(USRDIR)/libexec | |
172 | LOGDIR = $(VARDIR)/log | |
173 | MANDIR = $(SHAREDIR)/man | |
174 | MAILDIR = $(VARDIR)/mail | |
175 | MISCDIR = $(SHAREDIR)/misc | |
176 | NSADMINDIR = $(NSADMINSUBDIR) | |
177 | NSADMINSUBDIR = /Administration | |
178 | NSAPPLICATIONDIR = $(NSAPPLICATIONSUBDIR) | |
179 | NSAPPLICATIONSUBDIR = /Applications | |
180 | NSDEFAULTLOCATION = $(NSSYSTEMDIR) | |
181 | NSDEMODIR = $(NSAPPLICATIONDIR)$(NSDEMOSUBDIR) | |
182 | NSDEMOSUBDIR = /Extras | |
183 | NSDEVELOPERAPPSDIR = $(NSDEVELOPERDIR)$(NSAPPLICATIONSUBDIR) | |
184 | NSDEVELOPERDIR = $(NSDEVELOPERSUBDIR) | |
185 | NSDEVELOPERSUBDIR = /Developer | |
186 | NSDOCUMENTATIONDIR = $(NSLOCALDIR)$(NSDOCUMENTATIONSUBDIR) | |
187 | NSDOCUMENTATIONSUBDIR = $(NSLIBRARYSUBDIR)/Documentation | |
188 | NSFRAMEWORKDIR = $(NSDEFAULTLOCATION)$(NSFRAMEWORKSUBDIR) | |
189 | NSFRAMEWORKSUBDIR = $(NSLIBRARYSUBDIR)/Frameworks | |
190 | NSLIBRARYDIR = $(NSDEFAULTLOCATION)$(NSLIBRARYSUBDIR) | |
191 | NSLIBRARYSUBDIR = /Library | |
192 | NSLOCALDIR = | |
193 | NSNETWORKDIR = /Network | |
194 | NSSOURCEDIR = $(NSDEVELOPERDIR)$(NSSOURCESUBDIR) | |
195 | NSSOURCESUBDIR = /Source | |
196 | NSSYSTEMDIR = /System | |
197 | RUNDIR = $(VARDIR)/run | |
198 | SBINDIR = /sbin | |
199 | SHAREDIR = $(USRDIR)/share | |
200 | SPOOLDIR = $(VARDIR)/spool | |
201 | TMPDIR = /private/tmp | |
202 | USRBINDIR = $(USRDIR)/bin | |
203 | USRDIR = /usr | |
204 | USRINCLUDEDIR = $(USRDIR)/include | |
205 | USRLIBDIR = $(USRDIR)/lib | |
206 | USRSBINDIR = $(USRDIR)/sbin | |
207 | VARDIR = /private/var | |
208 | VARTMPDIR = $(VARDIR)/tmp | |
209 | ||
97ccb024 | 210 | SYSTEM_DEVELOPER_TOOLS_DOC_DIR = $(NSDEVELOPERDIR)/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools |
e50bb073 | 211 | |
fdbff003 A |
212 | ## |
213 | # Targets | |
214 | ## | |
215 | showvar: | |
216 | @echo $($(VAR)) |