Port to x86-64 versions of Windows
[sbcl.git] / src / runtime / Config.x86-64-win32
1 # This software is part of the SBCL system. See the README file for
2 # more information.
3 #
4 # This software is derived from the CMU CL system, which was
5 # written at Carnegie Mellon University and released into the
6 # public domain. The software is in the public domain and is
7 # provided with absolutely no warranty. See the COPYING and CREDITS
8 # files for more information.
9
10 TARGET=sbcl.exe
11
12 ASSEM_SRC = x86-64-assem.S
13 ARCH_SRC = x86-64-arch.c
14
15 OS_SRC = win32-os.c x86-64-win32-os.c os-common.c pthreads_win32.c
16 OS_OBJS = # sbcl-win.res.o
17
18 # The "--Wl,--export-dynamic" flags are here to help people
19 # experimenting with callbacks from C to SBCL, by allowing linkage to
20 # SBCL src/runtime/*.c symbols from C. Work on this is good, but it's
21 # definitely bleeding edge and not particularly stable. In particular,
22 # not only are the workarounds for the GC relocating Lisp code and
23 # data unstable, but even the basic calling convention might end up
24 # being unstable. Unless you want to do some masochistic maintenance
25 # work when new releases of SBCL come out, please don't try to build
26 # real code on this until a coherent stable interface has been added.
27 # (You *are* encouraged to design and implement a coherent stable
28 # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
29 # working on one and it would be a nice thing to have.)
30 LINKFLAGS = -Wl,-export-all-symbols -Wl,mswin64.def -Wl,mswin.def
31
32
33 OS_LIBS = -l ws2_32
34 ifdef LISP_FEATURE_SB_CORE_COMPRESSION
35   OS_LIBS += -lz
36 endif
37
38 GC_SRC = gencgc.c
39
40 CFLAGS =  -g -W -Wall \
41        -Wno-unused-function \
42        -fno-omit-frame-pointer \
43        -O5 -m64 -DWINVER=0x0501 \
44        -D__W32API_USE_DLLIMPORT__
45
46 ASFLAGS = $(CFLAGS)
47
48 CPP = cpp
49 CC = gcc
50 LD = ld
51 NM = nm
52 RC = windres
53
54 %.res.o:        %.rc
55         $(RC) -o "$@" "$<"
56
57 # Nothing to do for after-grovel-headers.
58 .PHONY: after-grovel-headers
59 after-grovel-headers: