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