-# defaults which might be overridden or modified by values in the
-# Config file
-#
-# FIXME: The -fno-strength-reduce flag comes from before the fork
-# from CMU CL. It's presumably to work around some optimizer bug in gcc,
-# but the fork was a long time ago, and the optimizer could easily
-# have been fixed since then. Try doing without it.
-CFLAGS = -g -Wall -O2 -fno-strength-reduce -DGENCGC
-ASFLAGS = -g -DGENCGC
-DEPEND_FLAGS =
-CPPFLAGS = -I.
+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.
+# If you need to override one of these, do it in Config.
+LD = ld
+LINKFLAGS = -g
+NM = nm -gp
+DEPEND_FLAGS = -MM
+GREP = grep
+
+include ../../output/prefix.def
+
+CFLAGS = -g -Wall -Wsign-compare -O3
+ASFLAGS = $(CFLAGS)
+CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\"
+
+# Give make access to the target Lisp features.
+include genesis/Makefile.features