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 += -g -Wall -fdollars-in-identifiers
14 ifdef SBCL_MACOSX_VERSION_MIN
15 CFLAGS += -mmacosx-version-min=$(SBCL_MACOSX_VERSION_MIN)
16 LINKFLAGS += -mmacosx-version-min=$(SBCL_MACOSX_VERSION_MIN)
18 CFLAGS += -mmacosx-version-min=10.9
19 LINKFLAGS += -mmacosx-version-min=10.9
21 ifdef LISP_FEATURE_INODE64
22 CFLAGS += -D_DARWIN_USE_64_BIT_INODE
25 OS_SRC = bsd-os.c x86-64-bsd-os.c darwin-os.c x86-64-darwin-os.c
27 OS_LIBS = -lSystem -lc -ldl
28 ifdef LISP_FEATURE_SB_THREAD
31 ifdef LISP_FEATURE_SB_CORE_COMPRESSION
34 ifdef LISP_FEATURE_SB_LINKABLE_RUNTIME
36 USE_LIBSBCL = -Wl,-force_load libsbcl.a
39 ASSEM_SRC = x86-64-assem.S
40 ARCH_SRC = x86-64-arch.c
42 LINKFLAGS += -arch x86_64 -dynamic -twolevel_namespace -bind_at_load -pagezero_size 0x100000
44 CFLAGS += -arch x86_64 -fno-omit-frame-pointer
47 ifdef LISP_FEATURE_IMMOBILE_SPACE
48 GC_SRC = fullcgc.c gencgc.c traceroot.c immobile-space.c
49 else ifdef LISP_FEATURE_MARK_REGION_GC
50 GC_SRC = fullcgc.c pmrgc.c traceroot.c mark-region.c incremental-compact.c gc-thread-pool.c
52 GC_SRC = fullcgc.c gencgc.c traceroot.c