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.
14 ASSEM_SRC = x86-assem.S
17 OS_SRC = win32-os.c x86-win32-os.c os-common.c pthreads_win32.c
19 # The "--Wl,--export-dynamic" flags are here to help people
20 # experimenting with callbacks from C to SBCL, by allowing linkage to
21 # SBCL src/runtime/*.c symbols from C. Work on this is good, but it's
22 # definitely bleeding edge and not particularly stable. In particular,
23 # not only are the workarounds for the GC relocating Lisp code and
24 # data unstable, but even the basic calling convention might end up
25 # being unstable. Unless you want to do some masochistic maintenance
26 # work when new releases of SBCL come out, please don't try to build
27 # real code on this until a coherent stable interface has been added.
28 # (You *are* encouraged to design and implement a coherent stable
29 # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
30 # working on one and it would be a nice thing to have.)
31 OS_LINK_FLAGS = -Wl,--export-dynamic
33 ifdef LISP_FEATURE_SB_CORE_COMPRESSION
39 CFLAGS = -g -Wall -O3 -fno-omit-frame-pointer -mno-cygwin -march=i686 -DWINVER=0x0501
47 ifneq ($(findstring cygwin,$(shell $(CC) -dumpmachine)),)
48 OS_LINK_FLAGS := $(OS_LINK_FLAGS) -Wl,-mno-cygwin
49 OS_LIBS := $(OS_LIBS) -mno-cygwin
50 CFLAGS := $(CFLAGS) -mno-cygwin
53 # Nothing to do for after-grovel-headers.
54 .PHONY: after-grovel-headers