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)
67 ARSH = $(MAKEFILEPATH)/bin/ar.sh
69 BISON != $(PATH_OF_COMMAND) bison
71 BISON = $(shell $(PATH_OF_COMMAND) bison)
74 BSDMAKE != $(PATH_OF_COMMAND) bsdmake
76 BSDMAKE = $(shell $(PATH_OF_COMMAND) bsdmake)
79 CC != $(PATH_OF_COMMAND) cc
81 CC = $(shell $(PATH_OF_COMMAND) cc)
84 C89 != $(PATH_OF_COMMAND) c89
86 C89 = $(shell $(PATH_OF_COMMAND) c89)
89 C99 != $(PATH_OF_COMMAND) c99
91 C99 = $(shell $(PATH_OF_COMMAND) c99)
94 CPP != $(PATH_OF_COMMAND) cpp
96 CPP = $(shell $(PATH_OF_COMMAND) cpp)
99 CTAGS != $(PATH_OF_COMMAND) ctags
101 CTAGS = $(shell $(PATH_OF_COMMAND) ctags)
104 Cxx != $(PATH_OF_COMMAND) c++
106 Cxx = $(shell $(PATH_OF_COMMAND) c++)
110 DSYMUTIL != $(PATH_OF_COMMAND) dsymutil
112 DSYMUTIL = $(shell $(PATH_OF_COMMAND) dsymutil)
115 DTRACE != $(PATH_OF_COMMAND) dtrace
117 DTRACE = $(shell $(PATH_OF_COMMAND) dtrace)
120 ETAGS != $(PATH_OF_COMMAND) etags
122 ETAGS = $(shell $(PATH_OF_COMMAND) etags)
125 FILE != $(PATH_OF_COMMAND) file
127 FILE = $(shell $(PATH_OF_COMMAND) file)
130 FLEX != $(PATH_OF_COMMAND) flex
132 FLEX = $(shell $(PATH_OF_COMMAND) flex)
135 GM4 != $(PATH_OF_COMMAND) gm4
137 GM4 = $(shell $(PATH_OF_COMMAND) gm4)
140 GNUMAKE != $(PATH_OF_COMMAND) gnumake
142 GNUMAKE = $(shell $(PATH_OF_COMMAND) gnumake)
145 LD != $(PATH_OF_COMMAND) ld
147 LD = $(shell $(PATH_OF_COMMAND) ld)
151 LIBTOOL != $(PATH_OF_COMMAND) libtool
153 LIBTOOL = $(shell $(PATH_OF_COMMAND) libtool)
156 LIPO != $(PATH_OF_COMMAND) lipo
158 LIPO = $(shell $(PATH_OF_COMMAND) lipo)
161 LORDER != $(PATH_OF_COMMAND) lorder
163 LORDER = $(shell $(PATH_OF_COMMAND) lorder)
166 M4 != $(PATH_OF_COMMAND) m4
168 M4 = $(shell $(PATH_OF_COMMAND) m4)
171 MIG != $(PATH_OF_COMMAND) mig
173 MIG = $(shell $(PATH_OF_COMMAND) mig)
176 NM != $(PATH_OF_COMMAND) nm
178 NM = $(shell $(PATH_OF_COMMAND) nm)
181 OTOOL != $(PATH_OF_COMMAND) otool
183 OTOOL = $(shell $(PATH_OF_COMMAND) otool)
186 RANLIB != $(PATH_OF_COMMAND) ranlib
188 RANLIB = $(shell $(PATH_OF_COMMAND) ranlib)
191 RPCGEN != $(PATH_OF_COMMAND) rpcgen
193 RPCGEN = $(shell $(PATH_OF_COMMAND) rpcgen)
196 SIZE != $(PATH_OF_COMMAND) size
198 SIZE = $(shell $(PATH_OF_COMMAND) size)
201 STRINGS != $(PATH_OF_COMMAND) strings
203 STRINGS = $(shell $(PATH_OF_COMMAND) strings)
206 STRIP != $(PATH_OF_COMMAND) strip
208 STRIP = $(shell $(PATH_OF_COMMAND) strip)
211 TCONF != $(PATH_OF_COMMAND) tconf
213 TCONF = $(shell $(PATH_OF_COMMAND) tconf)
216 UNIFDEF != $(PATH_OF_COMMAND) unifdef
218 UNIFDEF = $(shell $(PATH_OF_COMMAND) unifdef)
221 YACC != $(PATH_OF_COMMAND) yacc
223 YACC = $(shell $(PATH_OF_COMMAND) yacc)
229 CHFLAGS = /usr/bin/chflags
230 CHGRP = /usr/bin/chgrp
232 CHOWN = /usr/sbin/chown
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)
244 MKDIR = /bin/mkdir -p -m $(Install_Directory_Mode)
248 TOUCH = /usr/bin/touch
250 # If you're not root, you can't change file ownership
252 .if defined(USER) && $(USER) != root
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)
272 XARGS = /usr/bin/xargs
277 INSTALLER = /usr/bin/installer.sh
278 LSBOM = /usr/bin/lsbom
279 MKBOM = /usr/bin/mkbom
280 PACKAGE = /usr/bin/package
286 COMPRESSMANPAGES = $(MAKEFILEPATH)/bin/compress-man-pages.pl -d $(DSTROOT)
288 FALSE = /usr/bin/false
289 PLUTIL = /usr/bin/plutil
292 SYSCTL = /usr/sbin/sysctl
294 TEXI2HTML = /usr/bin/texi2html
296 UNAME = /usr/bin/uname
297 VERS_STRING = /usr/bin/vers_string
298 WHICH = /usr/bin/which
299 WHOAMI = /usr/bin/whoami
312 BASENAME = /usr/bin/basename
316 DIRNAME = /usr/bin/dirname
318 EGREP = /usr/bin/egrep
319 FGREP = /usr/bin/fgrep
323 PATCH = /usr/bin/patch
325 PRINTF = /usr/bin/printf
330 TSORT = /usr/bin/tsort