]>
Commit | Line | Data |
---|---|---|
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 | ## | |
31 | ifndef CoreOSMakefiles | |
32 | CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS | |
33 | else | |
34 | CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd) | |
35 | endif | |
36 | ||
37 | ## | |
38 | # Verbosity | |
39 | ## | |
40 | ifeq ($(RC_JASPER),YES) | |
41 | VERBOSE = YES | |
42 | else | |
43 | VERBOSE = NO | |
44 | endif | |
45 | ||
46 | _v = $(subst NO,@,$(subst YES,,$(VERBOSE))) | |
47 | _q = $(subst YES,@,$(subst NO,,$(VERBOSE))) | |
48 | ||
49 | ## | |
50 | # Working Directory | |
51 | ## | |
52 | WD := $(shell pwd) | |
53 | ||
54 | ## | |
55 | # User | |
56 | ## | |
57 | USER = $(shell whoami) | |
58 | ||
59 | ## | |
60 | # Host Platform | |
61 | ## | |
62 | ifeq ($(wildcard $(UNAME)),) | |
63 | OSName := unknown | |
64 | OSVersion := unknown | |
65 | else | |
66 | OSName := $(shell $(UNAME) -s) | |
67 | OSVersion := $(shell $(UNAME) -r) | |
68 | endif | |
69 | ||
70 | ## | |
71 | # Find Garbage | |
72 | ## | |
73 | Cruft = CVS RCS SCCS *~ .*~ .nfs\* .*.wmd | |
74 | Find_Cruft = '(' $(Cruft:%=-name '%' -or) -name '' ')' -print | |
75 | ||
76 | ## | |
77 | # Install | |
78 | ## | |
79 | Install_User = root | |
80 | Install_File_User = $(Install_User) | |
81 | Install_Program_User = $(Install_User) | |
82 | Install_Directory_User = $(Install_User) | |
83 | Install_Group = wheel | |
84 | Install_File_Group = $(Install_Group) | |
85 | Install_Program_Group = $(Install_Group) | |
86 | Install_Directory_Group = $(Install_Group) | |
87 | Install_Mask = 0022 | |
88 | Install_File_Mode = 0444 | |
89 | Install_Program_Mode = 0555 | |
90 | Install_Directory_Mode = 0755 | |
91 | ||
92 | ## | |
93 | # Locations | |
94 | ## | |
95 | AUTOMOUNTDIR = $(NSNETWORKDIR)/Servers | |
96 | BINDIR = /bin | |
97 | CORESDIR = /private/cores | |
98 | DEVDIR = /dev | |
99 | ETCDIR = /private/etc | |
100 | LIBDIR = /lib | |
101 | LIBEXECDIR = $(USRDIR)/libexec | |
102 | LOGDIR = $(VARDIR)/log | |
103 | MANDIR = $(SHAREDIR)/man | |
104 | MAILDIR = $(VARDIR)/mail | |
105 | MISCDIR = $(SHAREDIR)/misc | |
106 | NSADMINDIR = $(NSADMINSUBDIR) | |
107 | NSADMINSUBDIR = /Administration | |
108 | NSAPPLICATIONDIR = $(NSAPPLICATIONSUBDIR) | |
109 | NSAPPLICATIONSUBDIR = /Applications | |
110 | NSDEFAULTLOCATION = $(NSSYSTEMDIR) | |
111 | NSDEMODIR = $(NSAPPLICATIONDIR)$(NSDEMOSUBDIR) | |
112 | NSDEMOSUBDIR = /Extras | |
113 | NSDEVELOPERAPPSDIR = $(NSDEVELOPERDIR)$(NSAPPLICATIONSUBDIR) | |
114 | NSDEVELOPERDIR = $(NSDEVELOPERSUBDIR) | |
115 | NSDEVELOPERSUBDIR = /Developer | |
116 | NSDOCUMENTATIONDIR = $(NSLOCALDIR)$(NSDOCUMENTATIONSUBDIR) | |
117 | NSDOCUMENTATIONSUBDIR = $(NSLIBRARYSUBDIR)/Documentation | |
118 | NSFRAMEWORKDIR = $(NSDEFAULTLOCATION)$(NSFRAMEWORKSUBDIR) | |
119 | NSFRAMEWORKSUBDIR = $(NSLIBRARYSUBDIR)/Frameworks | |
120 | NSLIBRARYDIR = $(NSDEFAULTLOCATION)$(NSLIBRARYSUBDIR) | |
121 | NSLIBRARYSUBDIR = /Library | |
122 | NSLOCALDIR = | |
123 | NSNETWORKDIR = /Network | |
124 | NSSOURCEDIR = $(NSDEVELOPERDIR)$(NSSOURCESUBDIR) | |
125 | NSSOURCESUBDIR = /Source | |
126 | NSSYSTEMDIR = /System | |
127 | RUNDIR = $(VARDIR)/run | |
128 | SBINDIR = /sbin | |
129 | SHAREDIR = $(USRDIR)/share | |
130 | SPOOLDIR = $(VARDIR)/spool | |
131 | TMPDIR = /private/tmp | |
132 | USRBINDIR = $(USRDIR)/bin | |
133 | USRDIR = /usr | |
134 | USRINCLUDEDIR = $(USRDIR)/include | |
135 | USRLIBDIR = $(USRDIR)/lib | |
136 | USRSBINDIR = $(USRDIR)/sbin | |
137 | VARDIR = /private/var | |
138 | VARTMPDIR = $(VARDIR)/tmp | |
139 | ||
a44896e3 | 140 | SYSTEM_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 | ## | |
145 | showvar: | |
146 | @echo $($(VAR)) |