X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FGNUmakefile;h=7ecee385ebe668c2867ec1097c126be5f9110165;hb=f7faed97898dd0e94a18b0d1fca03aaa0fe24ab0;hp=e74b5afbdb8846456a32933e7a2adf316e06f606;hpb=402958f92506b9d3de852601b8c1ccb99b5ee558;p=sbcl.git diff --git a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile index e74b5af..7ecee38 100644 --- a/src/runtime/GNUmakefile +++ b/src/runtime/GNUmakefile @@ -11,7 +11,7 @@ .PHONY: all clean TAGS tags targets -all: targets +all: targets tags TARGET=sbcl # Defaults which might be overridden or modified by values in the @@ -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,10 +40,10 @@ 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 pthread-lutex.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 @@ -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; \