Merge PPC port
[sbcl.git] / src / runtime / GNUmakefile
index 128a7ba..99c0719 100644 (file)
@@ -14,8 +14,6 @@ all: sbcl sbcl.nm
 
 # defaults which might be overridden or modified by values in the
 # Config file
-#
-# 
 CFLAGS =  -g -Wall -O3
 ASFLAGS = $(CFLAGS)
 DEPEND_FLAGS =
@@ -52,12 +50,14 @@ sbcl.nm: sbcl
 sbcl: ${OBJS} 
        $(CC) ${LINKFLAGS} ${OS_LINK_FLAGS} -o $@ ${OBJS} ${OS_LIBS} -lm
 
-undefineds.o: undefineds.h  undefineds.c
-
 .PHONY: clean all
 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