projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce random casting in looks_like_valid_lisp_pointer_p().
[sbcl.git]
/
src
/
runtime
/
GNUmakefile
diff --git
a/src/runtime/GNUmakefile
b/src/runtime/GNUmakefile
index
a426e2f
..
b7b7af1
100644
(file)
--- a/
src/runtime/GNUmakefile
+++ b/
src/runtime/GNUmakefile
@@
-9,9
+9,10
@@
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
-.PHONY: all clean TAGS tags
+.PHONY: all clean TAGS tags targets
-all: sbcl sbcl.nm
+all: targets
+TARGET=sbcl
# Defaults which might be overridden or modified by values in the
# Config file. Most of them are same on most systems right now.
# Defaults which might be overridden or modified by values in the
# Config file. Most of them are same on most systems right now.
@@
-22,9
+23,14
@@
NM = nm -gp
DEPEND_FLAGS = -MM
GREP = grep
DEPEND_FLAGS = -MM
GREP = grep
-CFLAGS = -g -Wall -O3
+include ../../output/prefix.def
+
+CFLAGS = -g -Wall -Wsign-compare -O3
ASFLAGS = $(CFLAGS)
ASFLAGS = $(CFLAGS)
-CPPFLAGS = -I.
+CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\"
+
+# Give make access to the target Lisp features.
+include genesis/Makefile.features
# The Config file is the preferred place for tweaking options which
# are appropriate for particular setups (OS, ARCH, whatever). Make a
# The Config file is the preferred place for tweaking options which
# are appropriate for particular setups (OS, ARCH, whatever). Make a
@@
-34,12
+40,12
@@
CPPFLAGS = -I.
# OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES
include Config
# OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES
include Config
-
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \
- dynbind.c gc-common.c globals.c interr.c interrupt.c \
- monitor.c os-common.c parse.c print.c purify.c \
+ dynbind.c funcall.c gc-common.c globals.c interr.c interrupt.c \
+ largefile.c monitor.c os-common.c parse.c print.c purify.c \
+ pthread-futex.c \
regnames.c run-program.c runtime.c save.c search.c \
regnames.c run-program.c runtime.c save.c search.c \
- thread.c time.c util.c validate.c vars.c wrap.c
+ thread.c time.c util.c validate.c vars.c wrap.c
C_SRC = $(COMMON_SRC) ${ARCH_SRC} ${OS_SRC} ${GC_SRC}
C_SRC = $(COMMON_SRC) ${ARCH_SRC} ${OS_SRC} ${GC_SRC}
@@
-49,11
+55,13
@@
OBJS = $(C_SRC:.c=.o) $(ASSEM_SRC:.S=.o) ${OS_OBJS}
LIBS = ${OS_LIBS} -lm
LIBS = ${OS_LIBS} -lm
-sbcl: $(OBJS)
+targets: $(TARGET) sbcl.nm
+
+$(TARGET): $(OBJS)
$(CC) ${LINKFLAGS} -o $@ $^ $(LIBS)
$(CC) ${LINKFLAGS} -o $@ $^ $(LIBS)
-sbcl.nm: sbcl
- $(NM) sbcl | $(GREP) -v " F \| U " > ,$@
+sbcl.nm: $(TARGET)
+ $(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@
mv -f ,$@ $@
sbcl.h: $(wildcard genesis/*.h)
mv -f ,$@ $@
sbcl.h: $(wildcard genesis/*.h)
@@
-64,13
+72,7
@@
TAGS tags: $(SRCS)
etags $(SRCS)
clean:
etags $(SRCS)
clean:
- -rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp $(OS_CLEAN_FILES)
- # the depend file is obsolete
- -rm -f depend
-
-# depend target for backward compatibility
-.PHONY: depend
-depend:
+ -rm -f *.[do] $(TARGET) sbcl.nm sbcl.h core *.tmp $(OS_CLEAN_FILES)
%.d: %.c sbcl.h
@$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $< > $@.tmp; \
%.d: %.c sbcl.h
@$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $< > $@.tmp; \