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