Lines 18-44
TARGET=sbcl
Link Here
|
18 |
# Config file. Most of them are same on most systems right now. |
18 |
# Config file. Most of them are same on most systems right now. |
19 |
# If you need to override one of these, do it in Config. |
19 |
# If you need to override one of these, do it in Config. |
20 |
LD = ld |
20 |
LD = ld |
21 |
LINKFLAGS = -g |
21 |
SBCL_LDFLAGS = -g |
22 |
NM = nm -gp |
22 |
NM = nm -gp |
23 |
DEPEND_FLAGS = -MM |
23 |
DEPEND_FLAGS = -MM |
24 |
GREP = grep |
24 |
GREP = grep |
25 |
|
25 |
|
26 |
include ../../output/prefix.def |
26 |
include ../../output/prefix.def |
27 |
|
27 |
|
28 |
CFLAGS = -g -Wall -Wsign-compare -O3 |
28 |
SBCL_CFLAGS = -g -Wall -Wsign-compare -O3 |
29 |
ASFLAGS = $(CFLAGS) |
29 |
SBCL_ASFLAGS = $(SBCL_CFLAGS) |
30 |
CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\" |
30 |
SBCL_CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\" |
31 |
|
31 |
|
32 |
# Give make access to the target Lisp features. |
32 |
# Also included by tools-for-build/Makefile |
33 |
include genesis/Makefile.features |
33 |
-include platform.mk |
34 |
|
|
|
35 |
# The Config file is the preferred place for tweaking options which |
36 |
# are appropriate for particular setups (OS, ARCH, whatever). Make a |
37 |
# Config-foo file for setup foo, then arrange for Config to be a |
38 |
# symlink to Config-foo. |
39 |
# Commonly used variables in Config are: ARCH_SRC, ASSEM_SRC, GC_SRC, |
40 |
# OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES |
41 |
include Config |
42 |
|
34 |
|
43 |
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \ |
35 |
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \ |
44 |
dynbind.c funcall.c gc-common.c globals.c interr.c interrupt.c \ |
36 |
dynbind.c funcall.c gc-common.c globals.c interr.c interrupt.c \ |
Lines 58-64
LIBS = ${OS_LIBS} -lm
Link Here
|
58 |
targets: $(TARGET) sbcl.nm |
50 |
targets: $(TARGET) sbcl.nm |
59 |
|
51 |
|
60 |
$(TARGET): $(OBJS) |
52 |
$(TARGET): $(OBJS) |
61 |
$(CC) ${LINKFLAGS} -o $@ $^ $(LIBS) |
53 |
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) |
62 |
|
54 |
|
63 |
sbcl.nm: $(TARGET) |
55 |
sbcl.nm: $(TARGET) |
64 |
$(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@ |
56 |
$(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@ |