]> git.saurik.com Git - apple/coreosmakefiles.git/blob - Standard/Variables.in
2e8d204fdbeb61d2d1fca86338c262837ab0288a
[apple/coreosmakefiles.git] / Standard / Variables.in
1 ##
2 # Standard Variables
3 #ifdef BSDMAKESTYLE
4 #
5 # (Created from /Developer/Makefiles/CoreOS/Standard/Variables.make)
6 #endif
7 #
8 # Wilfredo Sanchez | wsanchez@apple.com
9 # Copyright (c) 1997-1999 Apple Computer, Inc.
10 #
11 # @APPLE_LICENSE_HEADER_START@
12 #
13 # Portions Copyright (c) 1999-2009 Apple Inc. All Rights
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 ##
35 #ifdef BSDMAKESTYLE
36 MAKEFILEPATH = /usr/share/mk
37 .ifndef CoreOSMakefiles
38 #else
39 ifndef CoreOSMakefiles
40 #endif
41 CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
42 #ifdef BSDMAKESTYLE
43 .else
44 #else
45 else
46 #endif
47 #ifdef BSDMAKESTYLE
48 CoreOSMakefiles != cd $(CoreOSMakefiles) && pwd
49 #else
50 CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd)
51 #endif
52 #ifdef BSDMAKESTYLE
53 .endif
54 #else
55 endif
56 #endif
57
58 ##
59 # Verbosity
60 ##
61 #ifdef BSDMAKESTYLE
62 .if defined(RC_JASPER) && $(RC_JASPER) == YES
63 #else
64 ifeq ($(RC_JASPER),YES)
65 #endif
66 VERBOSE = YES
67 #ifdef BSDMAKESTYLE
68 .else
69 #else
70 else
71 #endif
72 VERBOSE = NO
73 #ifdef BSDMAKESTYLE
74 .endif
75 #else
76 endif
77 #endif
78
79 #ifdef BSDMAKESTYLE
80 _v = $(VERBOSE:S/YES//:S/NO/@/)
81 #else
82 _v = $(subst NO,@,$(subst YES,,$(VERBOSE)))
83 #endif
84 #ifdef BSDMAKESTYLE
85 _q = $(VERBOSE:S/NO//:S/YES/@/)
86 #else
87 _q = $(subst YES,@,$(subst NO,,$(VERBOSE)))
88 #endif
89
90 ##
91 # Working Directory
92 ##
93 #ifdef BSDMAKESTYLE
94 WD != pwd
95 #else
96 WD := $(shell pwd)
97 #endif
98
99 ##
100 # User
101 ##
102 #ifdef BSDMAKESTYLE
103 USER != whoami
104 #else
105 USER = $(shell whoami)
106 #endif
107
108 ##
109 # Host Platform
110 ##
111 #ifdef BSDMAKESTYLE
112 .if !exists($(UNAME))
113 #else
114 ifeq ($(wildcard $(UNAME)),)
115 #endif
116 OSName := unknown
117 OSVersion := unknown
118 #ifdef BSDMAKESTYLE
119 .else
120 #else
121 else
122 #endif
123 #ifdef BSDMAKESTYLE
124 OSName != $(UNAME) -s
125 #else
126 OSName := $(shell $(UNAME) -s)
127 #endif
128 #ifdef BSDMAKESTYLE
129 OSVersion != $(UNAME) -r
130 #else
131 OSVersion := $(shell $(UNAME) -r)
132 #endif
133 #ifdef BSDMAKESTYLE
134 .endif
135 #else
136 endif
137 #endif
138
139 ##
140 # Find Garbage
141 ##
142 Cruft = CVS RCS SCCS *~ .*~ .nfs\* .*.wmd .svn .DS_Store .git
143 Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print
144 Tar_Cruft = $(Cruft:%=--exclude '%')
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
210 SYSTEM_DEVELOPER_TOOLS_DOC_DIR = $(NSDEVELOPERDIR)/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.4_2.docset/Contents/Resources/Documents/documentation/DeveloperTools
211
212 ##
213 # Targets
214 ##
215 showvar:
216 @echo $($(VAR))