Core OS Common Makefiles
- These are some makefiles which are required to build some Rhapsody
+ These are some makefiles which are required to build some Darwin
Core OS projects. Please note that these are not supported in any way
-outside of Core OS; they are subject to change without notice.
+outside of Darwin; they are subject to change without notice.
-Wilfredo Sanchez
- wsanchez@apple.com
+ wsanchez@opensource.apple.com
CC_Debug += -Wall -Werror
-Extra_CC_Flags += -traditional-cpp
+Extra_CC_Flags += -no-cpp-precomp
Environment = ARCH_FLAGS="$(CC_Archs)" \
COPTS="$(CFLAGS)" \
# Some reasonable defaults for RC variables
##
-RC_ARCHS = ppc i386
+RC_ARCHS = $(shell file /usr/lib/libSystem.B.dylib | grep 'shared library ' | sed 's|.*shared library ||')
RC_RELEASE = unknown
RC_VERSION = unknown
ifeq ($(COPY_SOURCES),YES)
-SRCROOT = /tmp/$(Project)/Sources
+SRCROOT = /tmp/$(ProjectName)/Sources
else
SRCROOT = $(shell pwd)
endif
-OBJROOT = /tmp/$(Project)/Build
-SYMROOT = /tmp/$(Project)/Debug
-DSTROOT = /tmp/$(Project)/Release
+OBJROOT = /tmp/$(ProjectName)/Build
+SYMROOT = /tmp/$(ProjectName)/Debug
+DSTROOT = /tmp/$(ProjectName)/Release
##
# My variables
endif
ifndef Install_HTML
ifeq "$(UserType)" "Developer"
-Install_HTML = $(NSDEVELOPERDIR)/Documentation/$(ToolType)/$(ProjectName)
+Install_HTML = $(NSDEVELOPERDIR)/Documentation/DeveloperTools/$(ProjectName)
else
Install_HTML = $(NSDOCUMENTATIONDIR)/$(ToolType)/$(ProjectName)
endif
GNUSource.make implements the build and install targets for sources
which use GNU autoconf's configure script to build.
+
+ BSDSource.make implements the build and install targets for sources
+which use BSD makefiles to build.
CC_Optimize =
LD_Prebind =
else
-CC_Optimize = -O3
+CC_Optimize = -Os
endif
CC_Other = -pipe