]> git.saurik.com Git - apple/coreosmakefiles.git/blame - Standard/Variables.in
CoreOSMakefiles-77.tar.gz
[apple/coreosmakefiles.git] / Standard / Variables.in
CommitLineData
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
36MAKEFILEPATH = /usr/share/mk
37.ifndef CoreOSMakefiles
38#else
fdbff003 39ifndef CoreOSMakefiles
51ef2a1e 40#endif
fdbff003 41CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
51ef2a1e
A
42#ifdef BSDMAKESTYLE
43.else
44#else
fdbff003 45else
51ef2a1e
A
46#endif
47#ifdef BSDMAKESTYLE
48CoreOSMakefiles != cd $(CoreOSMakefiles) && pwd
49#else
fdbff003 50CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd)
51ef2a1e
A
51#endif
52#ifdef BSDMAKESTYLE
53.endif
54#else
fdbff003 55endif
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 64ifeq ($(RC_XBS),YES)
51ef2a1e 65#endif
fdbff003 66VERBOSE = YES
51ef2a1e
A
67#ifdef BSDMAKESTYLE
68.else
69#else
fdbff003 70else
51ef2a1e 71#endif
fdbff003 72VERBOSE = NO
51ef2a1e
A
73#ifdef BSDMAKESTYLE
74.endif
75#else
fdbff003 76endif
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
94WD != pwd
95#else
fdbff003 96WD := $(shell pwd)
51ef2a1e 97#endif
fdbff003
A
98
99##
100# User
101##
51ef2a1e
A
102#ifdef BSDMAKESTYLE
103USER != whoami
104#else
fdbff003 105USER = $(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 114ifeq ($(wildcard $(UNAME)),)
51ef2a1e 115#endif
fdbff003
A
116OSName := unknown
117OSVersion := unknown
51ef2a1e
A
118#ifdef BSDMAKESTYLE
119.else
120#else
fdbff003 121else
51ef2a1e
A
122#endif
123#ifdef BSDMAKESTYLE
124OSName != $(UNAME) -s
125#else
fdbff003 126OSName := $(shell $(UNAME) -s)
51ef2a1e
A
127#endif
128#ifdef BSDMAKESTYLE
129OSVersion != $(UNAME) -r
130#else
fdbff003 131OSVersion := $(shell $(UNAME) -r)
51ef2a1e
A
132#endif
133#ifdef BSDMAKESTYLE
134.endif
135#else
fdbff003 136endif
51ef2a1e 137#endif
fdbff003
A
138
139##
140# Find Garbage
141##
90a5ffcc 142Cruft = CVS RCS SCCS *~ .*~ .nfs\* .*.wmd .svn .DS_Store .git
fdbff003 143Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print
90a5ffcc 144Tar_Cruft = $(Cruft:%=--exclude '%')
fdbff003
A
145
146##
147# Install
148##
149Install_User = root
150Install_File_User = $(Install_User)
151Install_Program_User = $(Install_User)
152Install_Directory_User = $(Install_User)
153Install_Group = wheel
154Install_File_Group = $(Install_Group)
155Install_Program_Group = $(Install_Group)
156Install_Directory_Group = $(Install_Group)
157Install_Mask = 0022
158Install_File_Mode = 0444
159Install_Program_Mode = 0555
160Install_Directory_Mode = 0755
161
162##
163# Locations
164##
165AUTOMOUNTDIR = $(NSNETWORKDIR)/Servers
166BINDIR = /bin
167CORESDIR = /private/cores
168DEVDIR = /dev
169ETCDIR = /private/etc
170LIBDIR = /lib
171LIBEXECDIR = $(USRDIR)/libexec
172LOGDIR = $(VARDIR)/log
173MANDIR = $(SHAREDIR)/man
174MAILDIR = $(VARDIR)/mail
175MISCDIR = $(SHAREDIR)/misc
176NSADMINDIR = $(NSADMINSUBDIR)
177NSADMINSUBDIR = /Administration
178NSAPPLICATIONDIR = $(NSAPPLICATIONSUBDIR)
179NSAPPLICATIONSUBDIR = /Applications
180NSDEFAULTLOCATION = $(NSSYSTEMDIR)
181NSDEMODIR = $(NSAPPLICATIONDIR)$(NSDEMOSUBDIR)
182NSDEMOSUBDIR = /Extras
183NSDEVELOPERAPPSDIR = $(NSDEVELOPERDIR)$(NSAPPLICATIONSUBDIR)
184NSDEVELOPERDIR = $(NSDEVELOPERSUBDIR)
185NSDEVELOPERSUBDIR = /Developer
186NSDOCUMENTATIONDIR = $(NSLOCALDIR)$(NSDOCUMENTATIONSUBDIR)
187NSDOCUMENTATIONSUBDIR = $(NSLIBRARYSUBDIR)/Documentation
188NSFRAMEWORKDIR = $(NSDEFAULTLOCATION)$(NSFRAMEWORKSUBDIR)
189NSFRAMEWORKSUBDIR = $(NSLIBRARYSUBDIR)/Frameworks
190NSLIBRARYDIR = $(NSDEFAULTLOCATION)$(NSLIBRARYSUBDIR)
191NSLIBRARYSUBDIR = /Library
192NSLOCALDIR =
193NSNETWORKDIR = /Network
194NSSOURCEDIR = $(NSDEVELOPERDIR)$(NSSOURCESUBDIR)
195NSSOURCESUBDIR = /Source
196NSSYSTEMDIR = /System
197RUNDIR = $(VARDIR)/run
198SBINDIR = /sbin
199SHAREDIR = $(USRDIR)/share
200SPOOLDIR = $(VARDIR)/spool
201TMPDIR = /private/tmp
202USRBINDIR = $(USRDIR)/bin
203USRDIR = /usr
204USRINCLUDEDIR = $(USRDIR)/include
205USRLIBDIR = $(USRDIR)/lib
206USRSBINDIR = $(USRDIR)/sbin
207VARDIR = /private/var
208VARTMPDIR = $(VARDIR)/tmp
209
97ccb024 210SYSTEM_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##
215showvar:
216 @echo $($(VAR))