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