]> git.saurik.com Git - apple/coreosmakefiles.git/blob - Standard/Variables.in
CoreOSMakefiles-63.tar.gz
[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
143 Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print
144
145 ##
146 # Install
147 ##
148 Install_User = root
149 Install_File_User = $(Install_User)
150 Install_Program_User = $(Install_User)
151 Install_Directory_User = $(Install_User)
152 Install_Group = wheel
153 Install_File_Group = $(Install_Group)
154 Install_Program_Group = $(Install_Group)
155 Install_Directory_Group = $(Install_Group)
156 Install_Mask = 0022
157 Install_File_Mode = 0444
158 Install_Program_Mode = 0555
159 Install_Directory_Mode = 0755
160
161 ##
162 # Locations
163 ##
164 AUTOMOUNTDIR = $(NSNETWORKDIR)/Servers
165 BINDIR = /bin
166 CORESDIR = /private/cores
167 DEVDIR = /dev
168 ETCDIR = /private/etc
169 LIBDIR = /lib
170 LIBEXECDIR = $(USRDIR)/libexec
171 LOGDIR = $(VARDIR)/log
172 MANDIR = $(SHAREDIR)/man
173 MAILDIR = $(VARDIR)/mail
174 MISCDIR = $(SHAREDIR)/misc
175 NSADMINDIR = $(NSADMINSUBDIR)
176 NSADMINSUBDIR = /Administration
177 NSAPPLICATIONDIR = $(NSAPPLICATIONSUBDIR)
178 NSAPPLICATIONSUBDIR = /Applications
179 NSDEFAULTLOCATION = $(NSSYSTEMDIR)
180 NSDEMODIR = $(NSAPPLICATIONDIR)$(NSDEMOSUBDIR)
181 NSDEMOSUBDIR = /Extras
182 NSDEVELOPERAPPSDIR = $(NSDEVELOPERDIR)$(NSAPPLICATIONSUBDIR)
183 NSDEVELOPERDIR = $(NSDEVELOPERSUBDIR)
184 NSDEVELOPERSUBDIR = /Developer
185 NSDOCUMENTATIONDIR = $(NSLOCALDIR)$(NSDOCUMENTATIONSUBDIR)
186 NSDOCUMENTATIONSUBDIR = $(NSLIBRARYSUBDIR)/Documentation
187 NSFRAMEWORKDIR = $(NSDEFAULTLOCATION)$(NSFRAMEWORKSUBDIR)
188 NSFRAMEWORKSUBDIR = $(NSLIBRARYSUBDIR)/Frameworks
189 NSLIBRARYDIR = $(NSDEFAULTLOCATION)$(NSLIBRARYSUBDIR)
190 NSLIBRARYSUBDIR = /Library
191 NSLOCALDIR =
192 NSNETWORKDIR = /Network
193 NSSOURCEDIR = $(NSDEVELOPERDIR)$(NSSOURCESUBDIR)
194 NSSOURCESUBDIR = /Source
195 NSSYSTEMDIR = /System
196 RUNDIR = $(VARDIR)/run
197 SBINDIR = /sbin
198 SHAREDIR = $(USRDIR)/share
199 SPOOLDIR = $(VARDIR)/spool
200 TMPDIR = /private/tmp
201 USRBINDIR = $(USRDIR)/bin
202 USRDIR = /usr
203 USRINCLUDEDIR = $(USRDIR)/include
204 USRLIBDIR = $(USRDIR)/lib
205 USRSBINDIR = $(USRDIR)/sbin
206 VARDIR = /private/var
207 VARTMPDIR = $(VARDIR)/tmp
208
209 SYSTEM_DEVELOPER_TOOLS_DOC_DIR = $(NSDEVELOPERDIR)/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools
210
211 ##
212 # Targets
213 ##
214 showvar:
215 @echo $($(VAR))