## # Standard Commands #ifdef BSDMAKESTYLE # # (Created from /Developer/Makefiles/CoreOS/Standard/Commands.make) #endif # # Wilfredo Sanchez | wsanchez@apple.com # Copyright (c) 1997-1999 Apple Computer, Inc. # # @APPLE_LICENSE_HEADER_START@ # # Portions Copyright (c) 1999-2009 Apple Inc. All Rights # Reserved. This file contains Original Code and/or Modifications of # Original Code as defined in and that are subject to the Apple Public # Source License Version 1.1 (the "License"). You may not use this file # except in compliance with the License. Please obtain a copy of the # License at http://www.apple.com/publicsource and read it before using # this file. # # The Original Code and all software distributed under the License are # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the # License for the specific language governing rights and limitations # under the License. # # @APPLE_LICENSE_HEADER_END@ ## ## # Make sure that we're using sh ## SHELL=/bin/sh ## # Archiving Commands ## COMPRESS = /usr/bin/compress GUNZIP = /usr/bin/gzip -d GZCAT = /usr/bin/gzip -d -c GZIP = /usr/bin/gzip -9 PAX = /bin/pax TAR = /usr/bin/tar UNCOMPRESS = $(GUNZIP) ZCAT = $(GZCAT) ## # How to find certain commands ## PATH_OF_COMMAND = xcrun -find ## # Compilers and Binary Tools ## #ifdef BSDMAKESTYLE AR != $(PATH_OF_COMMAND) ar #else AR = $(shell $(PATH_OF_COMMAND) ar) #endif #ifdef BSDMAKESTYLE AS != $(PATH_OF_COMMAND) as #else AS = $(shell $(PATH_OF_COMMAND) as) #endif ARSH = $(MAKEFILEPATH)/bin/ar.sh #ifdef BSDMAKESTYLE BISON != $(PATH_OF_COMMAND) bison #else BISON = $(shell $(PATH_OF_COMMAND) bison) #endif #ifdef BSDMAKESTYLE BSDMAKE != $(PATH_OF_COMMAND) bsdmake #else BSDMAKE = $(shell $(PATH_OF_COMMAND) bsdmake) #endif #ifdef BSDMAKESTYLE CC != $(PATH_OF_COMMAND) cc #else CC = $(shell $(PATH_OF_COMMAND) cc) #endif #ifdef BSDMAKESTYLE C89 != $(PATH_OF_COMMAND) c89 #else C89 = $(shell $(PATH_OF_COMMAND) c89) #endif #ifdef BSDMAKESTYLE C99 != $(PATH_OF_COMMAND) c99 #else C99 = $(shell $(PATH_OF_COMMAND) c99) #endif #ifdef BSDMAKESTYLE CPP != $(PATH_OF_COMMAND) cpp #else CPP = $(shell $(PATH_OF_COMMAND) cpp) #endif #ifdef BSDMAKESTYLE CTAGS != $(PATH_OF_COMMAND) ctags #else CTAGS = $(shell $(PATH_OF_COMMAND) ctags) #endif #ifdef BSDMAKESTYLE Cxx != $(PATH_OF_COMMAND) c++ #else Cxx = $(shell $(PATH_OF_COMMAND) c++) #endif CXX = $(Cxx) #ifdef BSDMAKESTYLE DSYMUTIL != $(PATH_OF_COMMAND) dsymutil #else DSYMUTIL = $(shell $(PATH_OF_COMMAND) dsymutil) #endif #ifdef BSDMAKESTYLE DTRACE != $(PATH_OF_COMMAND) dtrace #else DTRACE = $(shell $(PATH_OF_COMMAND) dtrace) #endif #ifdef BSDMAKESTYLE ETAGS != $(PATH_OF_COMMAND) etags #else ETAGS = $(shell $(PATH_OF_COMMAND) etags) #endif #ifdef BSDMAKESTYLE FILE != $(PATH_OF_COMMAND) file #else FILE = $(shell $(PATH_OF_COMMAND) file) #endif #ifdef BSDMAKESTYLE FLEX != $(PATH_OF_COMMAND) flex #else FLEX = $(shell $(PATH_OF_COMMAND) flex) #endif #ifdef BSDMAKESTYLE GM4 != $(PATH_OF_COMMAND) gm4 #else GM4 = $(shell $(PATH_OF_COMMAND) gm4) #endif #ifdef BSDMAKESTYLE GNUMAKE != $(PATH_OF_COMMAND) gnumake #else GNUMAKE = $(shell $(PATH_OF_COMMAND) gnumake) #endif #ifdef BSDMAKESTYLE LD != $(PATH_OF_COMMAND) ld #else LD = $(shell $(PATH_OF_COMMAND) ld) #endif LEX = $(FLEX) #ifdef BSDMAKESTYLE LIBTOOL != $(PATH_OF_COMMAND) libtool #else LIBTOOL = $(shell $(PATH_OF_COMMAND) libtool) #endif #ifdef BSDMAKESTYLE LIPO != $(PATH_OF_COMMAND) lipo #else LIPO = $(shell $(PATH_OF_COMMAND) lipo) #endif #ifdef BSDMAKESTYLE LORDER != $(PATH_OF_COMMAND) lorder #else LORDER = $(shell $(PATH_OF_COMMAND) lorder) #endif #ifdef BSDMAKESTYLE M4 != $(PATH_OF_COMMAND) m4 #else M4 = $(shell $(PATH_OF_COMMAND) m4) #endif #ifdef BSDMAKESTYLE MIG != $(PATH_OF_COMMAND) mig #else MIG = $(shell $(PATH_OF_COMMAND) mig) #endif #ifdef BSDMAKESTYLE NM != $(PATH_OF_COMMAND) nm #else NM = $(shell $(PATH_OF_COMMAND) nm) #endif #ifdef BSDMAKESTYLE OTOOL != $(PATH_OF_COMMAND) otool #else OTOOL = $(shell $(PATH_OF_COMMAND) otool) #endif #ifdef BSDMAKESTYLE RANLIB != $(PATH_OF_COMMAND) ranlib #else RANLIB = $(shell $(PATH_OF_COMMAND) ranlib) #endif #ifdef BSDMAKESTYLE RPCGEN != $(PATH_OF_COMMAND) rpcgen #else RPCGEN = $(shell $(PATH_OF_COMMAND) rpcgen) #endif #ifdef BSDMAKESTYLE SIZE != $(PATH_OF_COMMAND) size #else SIZE = $(shell $(PATH_OF_COMMAND) size) #endif #ifdef BSDMAKESTYLE STRINGS != $(PATH_OF_COMMAND) strings #else STRINGS = $(shell $(PATH_OF_COMMAND) strings) #endif #ifdef BSDMAKESTYLE STRIP != $(PATH_OF_COMMAND) strip #else STRIP = $(shell $(PATH_OF_COMMAND) strip) #endif #ifdef BSDMAKESTYLE TCONF != $(PATH_OF_COMMAND) tconf #else TCONF = $(shell $(PATH_OF_COMMAND) tconf) #endif #ifdef BSDMAKESTYLE UNIFDEF != $(PATH_OF_COMMAND) unifdef #else UNIFDEF = $(shell $(PATH_OF_COMMAND) unifdef) #endif #ifdef BSDMAKESTYLE YACC != $(PATH_OF_COMMAND) yacc #else YACC = $(shell $(PATH_OF_COMMAND) yacc) #endif ## # File Commands ## CHFLAGS = /usr/bin/chflags CHGRP = /usr/bin/chgrp CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CP = /bin/cp -pfR DU = /usr/bin/du INSTALL = /usr/bin/install INSTALL_DIRECTORY = $(INSTALL) -m $(Install_Directory_Mode) -o $(Install_Directory_User) -g $(Install_Directory_Group) -d INSTALL_DYLIB = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group) -S "-S" INSTALL_FILE = $(INSTALL) -m $(Install_File_Mode) -o $(Install_File_User) -g $(Install_File_Group) INSTALL_LIBRARY = $(INSTALL) -m $(Install_File_Mode) -o $(Install_File_User) -g $(Install_File_Group) -S "-S" INSTALL_PROGRAM = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group) -s INSTALL_SCRIPT = $(INSTALL) -m $(Install_Program_Mode) -o $(Install_Program_User) -g $(Install_Program_Group) LN = /bin/ln LS = /bin/ls MKDIR = /bin/mkdir -p -m $(Install_Directory_Mode) MV = /bin/mv RM = /bin/rm -f RMDIR = /bin/rm -fr TOUCH = /usr/bin/touch # If you're not root, you can't change file ownership #ifdef BSDMAKESTYLE .if defined(USER) && $(USER) != root #else ifneq ($(USER),root) #endif INSTALL_DIRECTORY = $(INSTALL) -m $(Install_Directory_Mode) -d INSTALL_FILE = $(INSTALL) -m $(Install_File_Mode) INSTALL_PROGRAM = $(INSTALL) -m $(Install_Program_Mode) -s INSTALL_DYLIB = $(INSTALL) -m $(Install_Program_Mode) -S "-S" INSTALL_LIBRARY = $(INSTALL) -m $(Install_File_Mode) -S "-S" INSTALL_SCRIPT = $(INSTALL) -m $(Install_Program_Mode) #ifdef BSDMAKESTYLE .endif #else endif #endif ## # Find Commands ## FIND = /usr/bin/find XARGS = /usr/bin/xargs ## # Installer ## INSTALLER = /usr/bin/installer.sh LSBOM = /usr/bin/lsbom MKBOM = /usr/bin/mkbom PACKAGE = /usr/bin/package ## # Miscellaneous ## ARCH = /usr/bin/arch COMPRESSMANPAGES = $(MAKEFILEPATH)/bin/compress-man-pages.pl -d $(DSTROOT) ECHO = echo FALSE = /usr/bin/false PLUTIL = /usr/bin/plutil PWD = /bin/pwd SLEEP = /bin/sleep SYSCTL = /usr/sbin/sysctl TEST = /bin/test TEXI2HTML = /usr/bin/texi2html TRUE = /usr/bin/true UNAME = /usr/bin/uname VERS_STRING = /usr/bin/vers_string WHICH = /usr/bin/which WHOAMI = /usr/bin/whoami YES = /usr/bin/yes ## # Shells ## SH = /bin/sh CSH = /bin/csh ## # Text Commands ## AWK = /usr/bin/gawk BASENAME = /usr/bin/basename CAT = /bin/cat CMP = /usr/bin/cmp CUT = /usr/bin/cut DIRNAME = /usr/bin/dirname ED = /bin/ed EGREP = /usr/bin/egrep FGREP = /usr/bin/fgrep FMT = /usr/bin/fmt GREP = /usr/bin/grep HEAD = /usr/bin/head PATCH = /usr/bin/patch PERL = /usr/bin/perl PRINTF = /usr/bin/printf SED = /usr/bin/sed SORT = /usr/bin/sort TAIL = /usr/bin/tail TEE = /usr/bin/tee TSORT = /usr/bin/tsort WC = /usr/bin/wc