X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FGNUmakefile;h=d60aeb9007b3598dc330f948f4f857992d2eefb2;hb=cce46771e6d734c275f3e2d5620004da3b5d09ee;hp=29fd1aaa9e970816bd415876279258cdae024627;hpb=9f10bc102adce15a820027777a03e49a7b7623da;p=sbcl.git diff --git a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile index 29fd1aa..d60aeb9 100644 --- a/src/runtime/GNUmakefile +++ b/src/runtime/GNUmakefile @@ -16,7 +16,6 @@ all: sbcl sbcl.nm # Config file CFLAGS = -g -Wall -O3 ASFLAGS = $(CFLAGS) -DEPEND_FLAGS = CPPFLAGS = -I. # Some of these things might be Config-dependent in future versions, @@ -35,13 +34,13 @@ DEPEND_FLAGS=-M include Config -C_SRCS =alloc.c backtrace.c breakpoint.c coreparse.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 \ - time.c util.c validate.c vars.c wrap.c + thread.c time.c util.c validate.c vars.c wrap.c -SRCS= $(C_SRCS) ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC} +SRCS = $(C_SRCS) ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC} OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS)))) @@ -55,13 +54,19 @@ sbcl: ${OBJS} .PHONY: clean all clean: - -rm -f depend *.o sbcl sbcl.nm core *.tmp + -rm -f depend *.o sbcl sbcl.nm core *.tmp $(CLEAN_FILES) +TAGS: $(SRCS) + etags $(SRCS) + +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 -# By including this file, we cause GNU to automatically make depend if -# it can't find it or it is out of date +# 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