5 # (Created from /Developer/Makefiles/CoreOS/Standard/Commands.make)
8 # Wilfredo Sanchez | wsanchez@apple.com
9 # Copyright (c) 1997-1999 Apple Computer, Inc.
11 # @APPLE_LICENSE_HEADER_START@
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
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
29 # @APPLE_LICENSE_HEADER_END@
33 # Make sure that we're using sh
40 COMPRESS = /usr/bin/compress
41 GUNZIP = /usr/bin/gzip -d
42 GZCAT = /usr/bin/gzip -d -c
43 GZIP = /usr/bin/gzip -9
46 UNCOMPRESS = $(GUNZIP)
50 # How to find certain commands
52 PATH_OF_COMMAND = xcrun -find
55 # Compilers and Binary Tools
58 AR != $(PATH_OF_COMMAND) ar
60 AR = $(shell $(PATH_OF_COMMAND) ar)
63 AS != $(PATH_OF_COMMAND) as
65 AS = $(shell $(PATH_OF_COMMAND) as)
68 BISON != $(PATH_OF_COMMAND) bison
70 BISON = $(shell $(PATH_OF_COMMAND) bison)
73 BSDMAKE != $(PATH_OF_COMMAND) bsdmake
75 BSDMAKE = $(shell $(PATH_OF_COMMAND) bsdmake)
78 CC != $(PATH_OF_COMMAND) cc
80 CC = $(shell $(PATH_OF_COMMAND) cc)
83 C89 != $(PATH_OF_COMMAND) c89
85 C89 = $(shell $(PATH_OF_COMMAND) c89)
88 C99 != $(PATH_OF_COMMAND) c99
90 C99 = $(shell $(PATH_OF_COMMAND) c99)
93 CPP != $(PATH_OF_COMMAND) cpp
95 CPP = $(shell $(PATH_OF_COMMAND) cpp)
98 CTAGS != $(PATH_OF_COMMAND) ctags
100 CTAGS = $(shell $(PATH_OF_COMMAND) ctags)
103 Cxx != $(PATH_OF_COMMAND) c++
105 Cxx = $(shell $(PATH_OF_COMMAND) c++)
109 DSYMUTIL != $(PATH_OF_COMMAND) dsymutil
111 DSYMUTIL = $(shell $(PATH_OF_COMMAND) dsymutil)
114 DTRACE != $(PATH_OF_COMMAND) dtrace
116 DTRACE = $(shell $(PATH_OF_COMMAND) dtrace)
119 ETAGS != $(PATH_OF_COMMAND) etags
121 ETAGS = $(shell $(PATH_OF_COMMAND) etags)
124 FILE != $(PATH_OF_COMMAND) file
126 FILE = $(shell $(PATH_OF_COMMAND) file)
129 FLEX != $(PATH_OF_COMMAND) flex
131 FLEX = $(shell $(PATH_OF_COMMAND) flex)
134 GM4 != $(PATH_OF_COMMAND) gm4
136 GM4 = $(shell $(PATH_OF_COMMAND) gm4)
139 GNUMAKE != $(PATH_OF_COMMAND) gnumake
141 GNUMAKE = $(shell $(PATH_OF_COMMAND) gnumake)
144 LD != $(PATH_OF_COMMAND) ld
146 LD = $(shell $(PATH_OF_COMMAND) ld)
150 LIBTOOL != $(PATH_OF_COMMAND) libtool
152 LIBTOOL = $(shell $(PATH_OF_COMMAND) libtool)
155 LIPO != $(PATH_OF_COMMAND) lipo
157 LIPO = $(shell $(PATH_OF_COMMAND) lipo)
160 LORDER != $(PATH_OF_COMMAND) lorder
162 LORDER = $(shell $(PATH_OF_COMMAND) lorder)
165 M4 != $(PATH_OF_COMMAND) m4
167 M4 = $(shell $(PATH_OF_COMMAND) m4)
170 MIG != $(PATH_OF_COMMAND) mig
172 MIG = $(shell $(PATH_OF_COMMAND) mig)
175 NM != $(PATH_OF_COMMAND) nm
177 NM = $(shell $(PATH_OF_COMMAND) nm)
180 OTOOL != $(PATH_OF_COMMAND) otool
182 OTOOL = $(shell $(PATH_OF_COMMAND) otool)
185 RANLIB != $(PATH_OF_COMMAND) ranlib
187 RANLIB = $(shell $(PATH_OF_COMMAND) ranlib)
190 RPCGEN != $(PATH_OF_COMMAND) rpcgen
192 RPCGEN = $(shell $(PATH_OF_COMMAND) rpcgen)
195 SIZE != $(PATH_OF_COMMAND) size
197 SIZE = $(shell $(PATH_OF_COMMAND) size)
200 STRINGS != $(PATH_OF_COMMAND) strings
202 STRINGS = $(shell $(PATH_OF_COMMAND) strings)
205 STRIP != $(PATH_OF_COMMAND) strip
207 STRIP = $(shell $(PATH_OF_COMMAND) strip)
210 TCONF != $(PATH_OF_COMMAND) tconf
212 TCONF = $(shell $(PATH_OF_COMMAND) tconf)
215 UNIFDEF != $(PATH_OF_COMMAND) unifdef
217 UNIFDEF = $(shell $(PATH_OF_COMMAND) unifdef)
220 YACC != $(PATH_OF_COMMAND) yacc
222 YACC = $(shell $(PATH_OF_COMMAND) yacc)
228 CHFLAGS = /usr/bin/chflags
229 CHGRP = /usr/bin/chgrp
231 CHOWN = /usr/sbin/chown
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)
243 MKDIR = /bin/mkdir -p -m $(Install_Directory_Mode)
247 TOUCH = /usr/bin/touch
249 # If you're not root, you can't change file ownership
251 .if defined(USER) && $(USER) != root
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)
271 XARGS = /usr/bin/xargs
276 INSTALLER = /usr/bin/installer.sh
277 LSBOM = /usr/bin/lsbom
278 MKBOM = /usr/bin/mkbom
279 PACKAGE = /usr/bin/package
286 FALSE = /usr/bin/false
287 PLUTIL = /usr/bin/plutil
290 SYSCTL = /usr/sbin/sysctl
292 TEXI2HTML = /usr/bin/texi2html
294 UNAME = /usr/bin/uname
295 WHICH = /usr/bin/which
296 WHOAMI = /usr/bin/whoami
309 BASENAME = /usr/bin/basename
313 DIRNAME = /usr/bin/dirname
315 EGREP = /usr/bin/egrep
316 FGREP = /usr/bin/fgrep
320 PATCH = /usr/bin/patch
322 PRINTF = /usr/bin/printf
327 TSORT = /usr/bin/tsort