5 # (Created from /Developer/Makefiles/CoreOS/Standard/Variables.make)
8 # Wilfredo Sanchez | wsanchez@apple.com
9 # Copyright (c) 1997-1999 Apple Computer, Inc.
11 # @APPLE_LICENSE_HEADER_START@
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
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
29 # @APPLE_LICENSE_HEADER_END@
33 # Where to find Makefiles
36 MAKEFILEPATH = /usr/share/mk
37 .ifndef CoreOSMakefiles
39 ifndef CoreOSMakefiles
41 CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
48 CoreOSMakefiles != cd $(CoreOSMakefiles) && pwd
50 CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd)
62 .if defined(RC_JASPER) && $(RC_JASPER) == YES
64 ifeq ($(RC_JASPER),YES)
80 _v = $(VERBOSE:S/YES//:S/NO/@/)
82 _v = $(subst NO,@,$(subst YES,,$(VERBOSE)))
85 _q = $(VERBOSE:S/NO//:S/YES/@/)
87 _q = $(subst YES,@,$(subst NO,,$(VERBOSE)))
105 USER = $(shell whoami)
112 .if !exists($(UNAME))
114 ifeq ($(wildcard $(UNAME)),)
124 OSName != $(UNAME) -s
126 OSName := $(shell $(UNAME) -s)
129 OSVersion != $(UNAME) -r
131 OSVersion := $(shell $(UNAME) -r)
142 Cruft = CVS RCS SCCS *~ .*~ .nfs\* .*.wmd .svn .DS_Store .git
143 Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print
144 Tar_Cruft = $(Cruft:%=--exclude '%')
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)
158 Install_File_Mode = 0444
159 Install_Program_Mode = 0555
160 Install_Directory_Mode = 0755
165 AUTOMOUNTDIR = $(NSNETWORKDIR)/Servers
167 CORESDIR = /private/cores
169 ETCDIR = /private/etc
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
193 NSNETWORKDIR = /Network
194 NSSOURCEDIR = $(NSDEVELOPERDIR)$(NSSOURCESUBDIR)
195 NSSOURCESUBDIR = /Source
196 NSSYSTEMDIR = /System
197 RUNDIR = $(VARDIR)/run
199 SHAREDIR = $(USRDIR)/share
200 SPOOLDIR = $(VARDIR)/spool
201 TMPDIR = /private/tmp
202 USRBINDIR = $(USRDIR)/bin
204 USRINCLUDEDIR = $(USRDIR)/include
205 USRLIBDIR = $(USRDIR)/lib
206 USRSBINDIR = $(USRDIR)/sbin
207 VARDIR = /private/var
208 VARTMPDIR = $(VARDIR)/tmp
210 SYSTEM_DEVELOPER_TOOLS_DOC_DIR = $(NSDEVELOPERDIR)/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools