# 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.
LINKFLAGS = -g
NM = nm -gp
DEPEND_FLAGS = -MM
+GREP = grep
CFLAGS = -g -Wall -O3
ASFLAGS = $(CFLAGS)
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)
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