4 # Wilfredo Sanchez | wsanchez@apple.com
5 # Copyright (c) 1997-1999 Apple Computer, Inc.
7 # @APPLE_LICENSE_HEADER_START@
9 # Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
10 # Reserved. This file contains Original Code and/or Modifications of
11 # Original Code as defined in and that are subject to the Apple Public
12 # Source License Version 1.1 (the "License"). You may not use this file
13 # except in compliance with the License. Please obtain a copy of the
14 # License at http://www.apple.com/publicsource and read it before using
17 # The Original Code and all software distributed under the License are
18 # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
19 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
20 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
22 # License for the specific language governing rights and limitations
25 # @APPLE_LICENSE_HEADER_END@
44 Frameworks = $(Extra_Frameworks)
46 # C Preprocessor Options
47 CPP_Defines = $(Extra_CPP_Defines)
48 CPP_Includes = $(Extra_CPP_Includes)
51 LD_Libraries = $(Extra_LD_Libraries)
54 CPP_Flags = $(CPP_Defines) $(CPP_Includes) $(Extra_CPP_Flags)
55 LD_Flags = $(CC_Archs) $(Frameworks) $(LD_Libraries) $(Extra_LD_Flags)
56 CC_Flags = $(CC_Archs) $(CC_Debug) $(CC_Optimize) $(CC_Other) $(Extra_CC_Flags)
57 Cxx_Flags = $(CC_Archs) $(CC_Debug) $(CC_Optimize) $(CC_Other) $(Extra_Cxx_Flags)
59 # This is for compatibility with standard implicit rules
60 CPPFLAGS = $(CPP_Flags)
62 CXXFLAGS = $(Cxx_Flags)
69 # C / Objective-C / C++ Source
72 @echo "Compiling "$@"..."
73 $(_v) $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
75 $(BuildDirectory)/%.o: %.c
76 @echo "Compiling "$@"..."
77 $(_v) $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
79 $(CC_Excecutable): $(CC_Objects)
80 @echo "Linking "$@"..."
81 $(_v) $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
84 @echo "Linking "$@"..."
85 $(_v) $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
90 @echo "Copying shell script "$@"..."
92 $(_v) $(CHMOD) ugo+x $@
94 $(BuildDirectory)/%: %.sh
95 @echo "Copying shell script "$@"..."
97 $(_v) $(CHMOD) ugo+x $@