X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FGNUmakefile;h=99c0719c8775c3926cf05c022c0489279b504eaf;hb=7f0f521aa3f6b45259c5dfd5f7f11adcd1a7cac6;hp=dbdef4194f9cae21392c72ee4e283a0d45378918;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile index dbdef41..99c0719 100644 --- a/src/runtime/GNUmakefile +++ b/src/runtime/GNUmakefile @@ -12,21 +12,33 @@ all: sbcl sbcl.nm .PHONY: all -# defaults which might be overridden by values in the Config file -CC = gcc +# defaults which might be overridden or modified by values in the +# Config file +CFLAGS = -g -Wall -O3 +ASFLAGS = $(CFLAGS) DEPEND_FLAGS = +CPPFLAGS = -I. + +# Some of these things might be Config-dependent in future versions, +# but they're the same on most systems right now. If you need to +# override one of these, do it in Config +CPP = cpp +LD = ld +LINKFLAGS = -g +NM = nm -gp # The Config file is the preferred place for tweaking options which -# are appropriate for particular setups (OS, CPU, whatever). Make -# a Config-foo file for setup foo, then set Config to be a symlink -# to Config-foo. +# are appropriate for particular setups (OS, CPU, whatever). Make a +# Config-foo file for setup foo, then arrange for Config to be a +# symlink to Config-foo. include Config + SRCS = alloc.c backtrace.c breakpoint.c coreparse.c \ dynbind.c globals.c interr.c interrupt.c \ monitor.c parse.c print.c purify.c \ - regnames.c runtime.c save.c search.c \ - time.c validate.c vars.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} OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS)))) @@ -43,5 +55,9 @@ clean: rm -f depend *.o sbcl sbcl.nm core *.tmp ; true depend: ${SRCS} sbcl.h - $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > depend.tmp + $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > 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 +include depend