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