X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FGNUmakefile;h=ac24da3f49592ddce933008e4fa40da82a9f34fa;hb=c6b078527eb68acc281dc79c91824c937f9447fe;hp=bd388d886cadf2e4e0fec0cc37d36c8d1cad43c7;hpb=8ae1a092ca40928020e48a588f6c47d18d334efe;p=sbcl.git diff --git a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile index bd388d8..ac24da3 100644 --- a/src/runtime/GNUmakefile +++ b/src/runtime/GNUmakefile @@ -9,9 +9,10 @@ # provided with absolutely no warranty. See the COPYING and CREDITS # files for more information. -.PHONY: all clean TAGS tags +.PHONY: all clean TAGS tags targets -all: sbcl sbcl.nm +all: targets +TARGET=sbcl # Defaults which might be overridden or modified by values in the # Config file. Most of them are same on most systems right now. @@ -20,6 +21,7 @@ LD = ld LINKFLAGS = -g NM = nm -gp DEPEND_FLAGS = -MM +GREP = grep CFLAGS = -g -Wall -O3 ASFLAGS = $(CFLAGS) @@ -48,11 +50,13 @@ OBJS = $(C_SRC:.c=.o) $(ASSEM_SRC:.S=.o) ${OS_OBJS} LIBS = ${OS_LIBS} -lm -sbcl: $(OBJS) +targets: $(TARGET) sbcl.nm + +$(TARGET): $(OBJS) $(CC) ${LINKFLAGS} -o $@ $^ $(LIBS) -sbcl.nm: sbcl - $(NM) sbcl | grep -v " F \| U " > ,$@ +sbcl.nm: $(TARGET) + $(NM) $(TARGET) | $(GREP) -v " F \| U " > ,$@ mv -f ,$@ $@ sbcl.h: $(wildcard genesis/*.h) @@ -63,7 +67,7 @@ TAGS tags: $(SRCS) etags $(SRCS) clean: - -rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp $(OS_CLEAN_FILES) + -rm -f *.[do] $(TARGET) sbcl.nm sbcl.h core *.tmp $(OS_CLEAN_FILES) # the depend file is obsolete -rm -f depend