projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.12.8: Really this time. Note to self: remeber to save the
[sbcl.git]
/
src
/
runtime
/
GNUmakefile
diff --git
a/src/runtime/GNUmakefile
b/src/runtime/GNUmakefile
index
128a7ba
..
d60aeb9
100644
(file)
--- a/
src/runtime/GNUmakefile
+++ b/
src/runtime/GNUmakefile
@@
-14,11
+14,8
@@
all: sbcl sbcl.nm
# defaults which might be overridden or modified by values in the
# Config file
# defaults which might be overridden or modified by values in the
# Config file
-#
-#
CFLAGS = -g -Wall -O3
ASFLAGS = $(CFLAGS)
CFLAGS = -g -Wall -O3
ASFLAGS = $(CFLAGS)
-DEPEND_FLAGS =
CPPFLAGS = -I.
# Some of these things might be Config-dependent in future versions,
CPPFLAGS = -I.
# Some of these things might be Config-dependent in future versions,
@@
-28,6
+25,7
@@
CPP = cpp
LD = ld
LINKFLAGS = -g
NM = nm -gp
LD = ld
LINKFLAGS = -g
NM = nm -gp
+DEPEND_FLAGS=-M
# The Config file is the preferred place for tweaking options which
# are appropriate for particular setups (OS, CPU, whatever). Make a
# The Config file is the preferred place for tweaking options which
# are appropriate for particular setups (OS, CPU, whatever). Make a
@@
-36,12
+34,13
@@
NM = nm -gp
include Config
include Config
-SRCS = alloc.c backtrace.c breakpoint.c coreparse.c \
- dynbind.c globals.c interr.c interrupt.c \
+C_SRCS = alloc.c backtrace.c breakpoint.c coreparse.c \
+ dynbind.c gc-common.c globals.c interr.c interrupt.c \
monitor.c parse.c print.c purify.c \
regnames.c run-program.c runtime.c save.c search.c \
monitor.c parse.c print.c purify.c \
regnames.c run-program.c runtime.c save.c search.c \
- time.c util.c validate.c vars.c wrap.c \
- ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
+ thread.c time.c util.c validate.c vars.c wrap.c
+
+SRCS = $(C_SRCS) ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
@@
-52,12
+51,22
@@
sbcl.nm: sbcl
sbcl: ${OBJS}
$(CC) ${LINKFLAGS} ${OS_LINK_FLAGS} -o $@ ${OBJS} ${OS_LIBS} -lm
sbcl: ${OBJS}
$(CC) ${LINKFLAGS} ${OS_LINK_FLAGS} -o $@ ${OBJS} ${OS_LIBS} -lm
-undefineds.o: undefineds.h undefineds.c
.PHONY: clean all
clean:
.PHONY: clean all
clean:
- rm -f depend *.o sbcl sbcl.nm core *.tmp ; true
+ -rm -f depend *.o sbcl sbcl.nm core *.tmp $(CLEAN_FILES)
+
+TAGS: $(SRCS)
+ etags $(SRCS)
-depend: ${SRCS} sbcl.h
- $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > depend.tmp
+sbcl.h: genesis/*.h
+ echo '#include "genesis/config.h"' >sbcl.h
+ echo '#include "genesis/constants.h"' >>sbcl.h
+
+depend: ${C_SRCS} sbcl.h
+ $(CC) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} ${C_SRCS} > depend.tmp
mv -f depend.tmp depend
mv -f depend.tmp depend
+
+# By including this file, we cause GNU make to automatically "make depend"
+# if it can't find it or it is out of date.
+include depend