1 # -*- makefile -*- for the C-level run-time support for SBCL
3 # This software is part of the SBCL system. See the README file for
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
12 CFLAGS = -arch i386 -g -Wall -O2 -fdollars-in-identifiers -fno-omit-frame-pointer
14 LINKFLAGS += -arch i386
15 ifdef SBCL_MACOSX_VERSION_MIN
16 CFLAGS += -mmacosx-version-min=$(SBCL_MACOSX_VERSION_MIN)
17 LINKFLAGS += -mmacosx-version-min=$(SBCL_MACOSX_VERSION_MIN)
19 ifdef LISP_FEATURE_DARWIN9_OR_BETTER
20 CFLAGS += -mmacosx-version-min=10.5
21 LINKFLAGS += -mmacosx-version-min=10.5
23 CFLAGS += -mmacosx-version-min=10.4
24 LINKFLAGS += -mmacosx-version-min=10.4
28 OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c
30 OS_LIBS = -lSystem -lc -ldl
31 ifdef LISP_FEATURE_SB_THREAD
34 ifdef LISP_FEATURE_SB_CORE_COMPRESSION
37 ifndef LISP_FEATURE_SB_DYNAMIC_CORE
38 LINKFLAGS +=-Wl,-no_pie
40 ifdef LISP_FEATURE_SB_LINKABLE_RUNTIME
42 USE_LIBSBCL = -Wl,-force_load libsbcl.a
45 ASSEM_SRC = x86-assem.S ldso-stubs.S
48 CPPFLAGS += -no-cpp-precomp
52 .PHONY: after-grovel-headers