X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.ppc-darwin;h=92089b5c8a2c7537251b7021ac3f33c1ff996beb;hb=7c75cd363da90afe334e936aad2b63437ea5905d;hp=88b8624ab3ce30b8ec3054299b86dd6062c11b8a;hpb=343ef95fda9da33830d5ab6aabe5368c898f0918;p=sbcl.git diff --git a/src/runtime/Config.ppc-darwin b/src/runtime/Config.ppc-darwin index 88b8624..92089b5 100644 --- a/src/runtime/Config.ppc-darwin +++ b/src/runtime/Config.ppc-darwin @@ -1,45 +1,38 @@ -# -*- makefile -*- -CFLAGS = -Dppc -g -Wall -O2 -no-cpp-precomp -fdollars-in-identifiers -OS_SRC = bsd-os.c os-common.c ppc-darwin-os.c ppc-darwin-dlshim.c ppc-darwin-langinfo.c -OS_LIBS = -lSystem -lc -lm -OS_OBJS = ppc-darwin-rospace.o +# -*- makefile -*- for the C-level run-time support for SBCL -CC = gcc - -ASSEM_SRC = ppc-assem.S ldso-stubs.S -ARCH_SRC = ppc-arch.c +# This software is part of the SBCL system. See the README file for +# more information. +# +# This software is derived from the CMU CL system, which was +# written at Carnegie Mellon University and released into the +# public domain. The software is in the public domain and is +# provided with absolutely no warranty. See the COPYING and CREDITS +# files for more information. -CPP = cpp -no-cpp-precomp +CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 +LINKFLAGS += -mmacosx-version-min=10.4 -# KLUDGE: in OS X 10.3, Apple started putting the heap right where we -# expect our read-only space mapped. This hack causes the linker to -# place a zero-fill-on-demand segment in the same place and size as -# read-only-space, which is the only thing capable of keeping malloc -# out of this range. -OS_LINK_FLAGS = -dynamic `cat ppc-darwin-link-flags` -twolevel_namespace -bind_at_load +OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c +ifdef LISP_FEATURE_DLSHIM + OS_SRC += darwin-dlshim.c +endif -GC_SRC= cheneygc.c +OS_LIBS = -lSystem -lc -CLEAN_FILES += ppc-darwin-mkrospace ppc-darwin-fix-rospace ppc-darwin-link-flags +CC = gcc -ppc-darwin-mkrospace: ppc-darwin-mkrospace.c - $(CC) -g -Wall -pedantic -o $@ $< +ASSEM_SRC = ppc-assem.S ldso-stubs.S +ARCH_SRC = ppc-arch.c -ppc-darwin-fix-rospace: ppc-darwin-fix-rospace.c - $(CC) -g -Wall -pedantic -o $@ $< +CPPFLAGS += -no-cpp-precomp -ppc-darwin-rospace.o ppc-darwin-link-flags: ppc-darwin-mkrospace - ./ppc-darwin-mkrospace > ppc-darwin-link-flags +ifdef LISP_FEATURE_GENCGC + GC_SRC = gencgc.c +else + GC_SRC = cheneygc.c +endif .PHONY: after-grovel-headers -# Fix the sbcl runtime to avoid Panther placing the heap where -# it wants read only space (in the first 32 megabytes, where it -# can be absolute-branched to with BA.) Must be done after -# grovel-headers, because Apple's nm is broken. -after-grovel-headers: ppc-darwin-fix-rospace - ./ppc-darwin-fix-rospace - -# Fortunatly make-target-1.sh does a make clean all the time. -# Otherwise we would have to make sure that sbcl gets rebuilt without -# the readonlyspace hack before groveling headers again. +# Nothing to do. +after-grovel-headers: