]> git.saurik.com Git - apple/coreosmakefiles.git/blob - Standard/Commands.in
CoreOSMakefiles-73.tar.gz
[apple/coreosmakefiles.git] / Standard / Commands.in
1 ##
2 # Standard Commands
3 #ifdef BSDMAKESTYLE
4 #
5 # (Created from /Developer/Makefiles/CoreOS/Standard/Commands.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 # Make sure that we're using sh
34 ##
35 SHELL=/bin/sh
36
37 ##
38 # Archiving Commands
39 ##
40 COMPRESS = /usr/bin/compress
41 GUNZIP = /usr/bin/gzip -d
42 GZCAT = /usr/bin/gzip -d -c
43 GZIP = /usr/bin/gzip -9
44 PAX = /bin/pax
45 TAR = /usr/bin/tar
46 UNCOMPRESS = $(GUNZIP)
47 ZCAT = $(GZCAT)
48
49 ##
50 # How to find certain commands
51 ##
52 PATH_OF_COMMAND = xcrun -find
53
54 ##
55 # Compilers and Binary Tools
56 ##
57 #ifdef BSDMAKESTYLE
58 AR != $(PATH_OF_COMMAND) ar
59 #else
60 AR = $(shell $(PATH_OF_COMMAND) ar)
61 #endif
62 #ifdef BSDMAKESTYLE
63 AS != $(PATH_OF_COMMAND) as
64 #else
65 AS = $(shell $(PATH_OF_COMMAND) as)
66 #endif
67 #ifdef BSDMAKESTYLE
68 BISON != $(PATH_OF_COMMAND) bison
69 #else
70 BISON = $(shell $(PATH_OF_COMMAND) bison)
71 #endif
72 #ifdef BSDMAKESTYLE
73 BSDMAKE != $(PATH_OF_COMMAND) bsdmake
74 #else
75 BSDMAKE = $(shell $(PATH_OF_COMMAND) bsdmake)
76 #endif
77 #ifdef BSDMAKESTYLE
78 CC != $(PATH_OF_COMMAND) cc
79 #else
80 CC = $(shell $(PATH_OF_COMMAND) cc)
81 #endif
82 #ifdef BSDMAKESTYLE
83 C89 != $(PATH_OF_COMMAND) c89
84 #else
85 C89 = $(shell $(PATH_OF_COMMAND) c89)
86 #endif
87 #ifdef BSDMAKESTYLE
88 C99 != $(PATH_OF_COMMAND) c99
89 #else
90 C99 = $(shell $(PATH_OF_COMMAND) c99)
91 #endif
92 #ifdef BSDMAKESTYLE
93 CPP != $(PATH_OF_COMMAND) cpp
94 #else
95 CPP = $(shell $(PATH_OF_COMMAND) cpp)
96 #endif
97 #ifdef BSDMAKESTYLE
98 CTAGS != $(PATH_OF_COMMAND) ctags
99 #else
100 CTAGS = $(shell $(PATH_OF_COMMAND) ctags)
101 #endif
102 #ifdef BSDMAKESTYLE
103 Cxx != $(PATH_OF_COMMAND) c++
104 #else
105 Cxx = $(shell $(PATH_OF_COMMAND) c++)
106 #endif
107 CXX = $(Cxx)
108 #ifdef BSDMAKESTYLE
109 DSYMUTIL != $(PATH_OF_COMMAND) dsymutil
110 #else
111 DSYMUTIL = $(shell $(PATH_OF_COMMAND) dsymutil)
112 #endif
113 #ifdef BSDMAKESTYLE
114 DTRACE != $(PATH_OF_COMMAND) dtrace
115 #else
116 DTRACE = $(shell $(PATH_OF_COMMAND) dtrace)
117 #endif
118 #ifdef BSDMAKESTYLE
119 ETAGS != $(PATH_OF_COMMAND) etags
120 #else
121 ETAGS = $(shell $(PATH_OF_COMMAND) etags)
122 #endif
123 #ifdef BSDMAKESTYLE
124 FILE != $(PATH_OF_COMMAND) file
125 #else
126 FILE = $(shell $(PATH_OF_COMMAND) file)
127 #endif
128 #ifdef BSDMAKESTYLE
129 FLEX != $(PATH_OF_COMMAND) flex
130 #else
131 FLEX = $(shell $(PATH_OF_COMMAND) flex)
132 #endif
133 #ifdef BSDMAKESTYLE
134 GM4 != $(PATH_OF_COMMAND) gm4
135 #else
136 GM4 = $(shell $(PATH_OF_COMMAND) gm4)
137 #endif
138 #ifdef BSDMAKESTYLE
139 GNUMAKE != $(PATH_OF_COMMAND) gnumake
140 #else
141 GNUMAKE = $(shell $(PATH_OF_COMMAND) gnumake)
142 #endif
143 #ifdef BSDMAKESTYLE
144 LD != $(PATH_OF_COMMAND) ld
145 #else
146 LD = $(shell $(PATH_OF_COMMAND) ld)
147 #endif
148 LEX = $(FLEX)
149 #ifdef BSDMAKESTYLE
150 LIBTOOL != $(PATH_OF_COMMAND) libtool
151 #else
152 LIBTOOL = $(shell $(PATH_OF_COMMAND) libtool)
153 #endif
154 #ifdef BSDMAKESTYLE
155 LIPO != $(PATH_OF_COMMAND) lipo
156 #else
157 LIPO = $(shell $(PATH_OF_COMMAND) lipo)
158 #endif
159 #ifdef BSDMAKESTYLE
160 LORDER != $(PATH_OF_COMMAND) lorder
161 #else
162 LORDER = $(shell $(PATH_OF_COMMAND) lorder)
163 #endif
164 #ifdef BSDMAKESTYLE
165 M4 != $(PATH_OF_COMMAND) m4
166 #else
167 M4 = $(shell $(PATH_OF_COMMAND) m4)
168 #endif
169 #ifdef BSDMAKESTYLE
170 MIG != $(PATH_OF_COMMAND) mig
171 #else
172 MIG = $(shell $(PATH_OF_COMMAND) mig)
173 #endif
174 #ifdef BSDMAKESTYLE
175 NM != $(PATH_OF_COMMAND) nm
176 #else
177 NM = $(shell $(PATH_OF_COMMAND) nm)
178 #endif
179 #ifdef BSDMAKESTYLE
180 OTOOL != $(PATH_OF_COMMAND) otool
181 #else
182 OTOOL = $(shell $(PATH_OF_COMMAND) otool)
183 #endif
184 #ifdef BSDMAKESTYLE
185 RANLIB != $(PATH_OF_COMMAND) ranlib
186 #else
187 RANLIB = $(shell $(PATH_OF_COMMAND) ranlib)
188 #endif
189 #ifdef BSDMAKESTYLE
190 RPCGEN != $(PATH_OF_COMMAND) rpcgen
191 #else
192 RPCGEN = $(shell $(PATH_OF_COMMAND) rpcgen)
193 #endif
194 #ifdef BSDMAKESTYLE
195 SIZE != $(PATH_OF_COMMAND) size
196 #else
197 SIZE = $(shell $(PATH_OF_COMMAND) size)
198 #endif
199 #ifdef BSDMAKESTYLE
200 STRINGS != $(PATH_OF_COMMAND) strings
201 #else
202 STRINGS = $(shell $(PATH_OF_COMMAND) strings)
203 #endif
204 #ifdef BSDMAKESTYLE
205 STRIP != $(PATH_OF_COMMAND) strip
206 #else
207 STRIP = $(shell $(PATH_OF_COMMAND) strip)
208 #endif
209 #ifdef BSDMAKESTYLE
210 TCONF != $(PATH_OF_COMMAND) tconf
211 #else
212 TCONF = $(shell $(PATH_OF_COMMAND) tconf)
213 #endif
214 #ifdef BSDMAKESTYLE
215 UNIFDEF != $(PATH_OF_COMMAND) unifdef
216 #else
217 UNIFDEF = $(shell $(PATH_OF_COMMAND) unifdef)
218 #endif
219 #ifdef BSDMAKESTYLE
220 YACC != $(PATH_OF_COMMAND) yacc
221 #else
222 YACC = $(shell $(PATH_OF_COMMAND) yacc)
223 #endif
224
225 ##
226 # File Commands
227 ##
228 CHFLAGS = /usr/bin/chflags
229 CHGRP = /usr/bin/chgrp
230 CHMOD = /bin/chmod
231 CHOWN = /usr/sbin/chown
232 CP = /bin/cp -pfR
233 DU = /usr/bin/du
234 INSTALL = /usr/bin/install
235 INSTALL_DIRECTORY = $(INSTALL) -m $(Install_Directory_Mode) -o $(Install_Directory_User) -g $(Install_Directory_Group) -d
236 INSTALL_DYLIB = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group) -S "-S"
237 INSTALL_FILE = $(INSTALL) -m $(Install_File_Mode) -o $(Install_File_User) -g $(Install_File_Group)
238 INSTALL_LIBRARY = $(INSTALL) -m $(Install_File_Mode) -o $(Install_File_User) -g $(Install_File_Group) -S "-S"
239 INSTALL_PROGRAM = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group) -s
240 INSTALL_SCRIPT = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group)
241 LN = /bin/ln
242 LS = /bin/ls
243 MKDIR = /bin/mkdir -p -m $(Install_Directory_Mode)
244 MV = /bin/mv
245 RM = /bin/rm -f
246 RMDIR = /bin/rm -fr
247 TOUCH = /usr/bin/touch
248
249 # If you're not root, you can't change file ownership
250 #ifdef BSDMAKESTYLE
251 .if defined(USER) && $(USER) != root
252 #else
253 ifneq ($(USER),root)
254 #endif
255 INSTALL_DIRECTORY = $(INSTALL) -m $(Install_Directory_Mode) -d
256 INSTALL_FILE = $(INSTALL) -m $(Install_File_Mode)
257 INSTALL_PROGRAM = $(INSTALL) -m $(Install_Program_Mode) -s
258 INSTALL_DYLIB = $(INSTALL) -m $(Install_Program_Mode) -S "-S"
259 INSTALL_LIBRARY = $(INSTALL) -m $(Install_File_Mode) -S "-S"
260 INSTALL_SCRIPT = $(INSTALL) -m $(Install_Program_Mode)
261 #ifdef BSDMAKESTYLE
262 .endif
263 #else
264 endif
265 #endif
266
267 ##
268 # Find Commands
269 ##
270 FIND = /usr/bin/find
271 XARGS = /usr/bin/xargs
272
273 ##
274 # Installer
275 ##
276 INSTALLER = /usr/bin/installer.sh
277 LSBOM = /usr/bin/lsbom
278 MKBOM = /usr/bin/mkbom
279 PACKAGE = /usr/bin/package
280
281 ##
282 # Miscellaneous
283 ##
284 ARCH = /usr/bin/arch
285 COMPRESSMANPAGES = $(MAKEFILEPATH)/bin/compress-man-pages.pl -d $(DSTROOT)
286 ECHO = echo
287 FALSE = /usr/bin/false
288 PLUTIL = /usr/bin/plutil
289 PWD = /bin/pwd
290 SLEEP = /bin/sleep
291 SYSCTL = /usr/sbin/sysctl
292 TEST = /bin/test
293 TEXI2HTML = /usr/bin/texi2html
294 TRUE = /usr/bin/true
295 UNAME = /usr/bin/uname
296 WHICH = /usr/bin/which
297 WHOAMI = /usr/bin/whoami
298 YES = /usr/bin/yes
299
300 ##
301 # Shells
302 ##
303 SH = /bin/sh
304 CSH = /bin/csh
305
306 ##
307 # Text Commands
308 ##
309 AWK = /usr/bin/gawk
310 BASENAME = /usr/bin/basename
311 CAT = /bin/cat
312 CMP = /usr/bin/cmp
313 CUT = /usr/bin/cut
314 DIRNAME = /usr/bin/dirname
315 ED = /bin/ed
316 EGREP = /usr/bin/egrep
317 FGREP = /usr/bin/fgrep
318 FMT = /usr/bin/fmt
319 GREP = /usr/bin/grep
320 HEAD = /usr/bin/head
321 PATCH = /usr/bin/patch
322 PERL = /usr/bin/perl
323 PRINTF = /usr/bin/printf
324 SED = /usr/bin/sed
325 SORT = /usr/bin/sort
326 TAIL = /usr/bin/tail
327 TEE = /usr/bin/tee
328 TSORT = /usr/bin/tsort
329 WC = /usr/bin/wc