Windows: Use overlapped I/O, CreateFile
[sbcl.git] / src / runtime / Config.x86-win32
1 # -*- makefile -*- for the C-level run-time support for SBCL
2
3 # This software is part of the SBCL system. See the README file for
4 # more information.
5 #
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.
11
12 TARGET=sbcl.exe
13
14 ASSEM_SRC = x86-assem.S
15 ARCH_SRC = x86-arch.c
16
17 OS_SRC = win32-os.c x86-win32-os.c os-common.c pthreads_win32.c
18
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
32 OS_LIBS = -l ws2_32
33 ifdef LISP_FEATURE_SB_CORE_COMPRESSION
34   OS_LIBS += -lz
35 endif
36
37 GC_SRC = gencgc.c
38
39 CFLAGS = -g -Wall -O3 -fno-omit-frame-pointer -mno-cygwin -march=i686 -DWINVER=0x0501
40 ASFLAGS = $(CFLAGS)
41
42 CPP = cpp
43 CC = gcc
44 LD = ld
45 NM = nm
46
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
51 endif
52
53 # Nothing to do for after-grovel-headers.
54 .PHONY: after-grovel-headers
55 after-grovel-headers: