X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2FGNUmakefile;h=b7b7af145743f74e1409eac2d95f54cd35b25a62;hb=1e161456a066b34e4a764fd351217dafc4f4f787;hp=ac24da3f49592ddce933008e4fa40da82a9f34fa;hpb=7fb597b585fc715537ea644f7d84440eca217ca1;p=sbcl.git diff --git a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile index ac24da3..b7b7af1 100644 --- a/src/runtime/GNUmakefile +++ b/src/runtime/GNUmakefile @@ -23,9 +23,14 @@ NM = nm -gp DEPEND_FLAGS = -MM GREP = grep -CFLAGS = -g -Wall -O3 +include ../../output/prefix.def + +CFLAGS = -g -Wall -Wsign-compare -O3 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 @@ -35,12 +40,12 @@ CPPFLAGS = -I. # OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES include Config - 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 \ - 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} @@ -56,7 +61,7 @@ $(TARGET): $(OBJS) $(CC) ${LINKFLAGS} -o $@ $^ $(LIBS) sbcl.nm: $(TARGET) - $(NM) $(TARGET) | $(GREP) -v " F \| U " > ,$@ + $(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@ mv -f ,$@ $@ sbcl.h: $(wildcard genesis/*.h) @@ -68,12 +73,6 @@ TAGS tags: $(SRCS) clean: -rm -f *.[do] $(TARGET) 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: %.d: %.c sbcl.h @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $< > $@.tmp; \