+# -*- makefile -*- for the C-level run-time support for SBCL
+
# This software is part of the SBCL system. See the README file for
# more information.
#
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
-# -mcpu=pca56 makes _my_ alpha go fast, I'm told. Yours may do something
-# else.
-CFLAGS = -g -Wall -Dsparc
-ASFLAGS = -g -Wall -Dsparc
-LD = ld
-LINKFLAGS = -v -g
-NM = nm -p
+ASFLAGS = -g -Wall -Wa,-xarch=v8plus
+LINKFLAGS += -v -rdynamic
+NM = ./linux-nm
+
+ASSEM_SRC = sparc-assem.S ldso-stubs.S
+ARCH_SRC = sparc-arch.c #undefineds.c
-ASSEM_SRC = sparc-assem.S
-ARCH_SRC = sparc-arch.c undefineds.c
-#ARCH_SRC = sparc-arch.c ldso-stubs.S
+OS_SRC = linux-os.c sparc-linux-os.c
+OS_LIBS = -ldl
+ifdef LISP_FEATURE_SB_CORE_COMPRESSION
+ OS_LIBS += -lz
+endif
-OS_SRC = linux-os.c sparc-linux-os.c os-common.c
-LINKFLAGS+=-static
-#LINKFLAGS+=-rdynamic
-OS_LIBS= -ldl
+ifdef LISP_FEATURE_GENCGC
+ GC_SRC = gencgc.c
+else
+ GC_SRC = cheneygc.c
+endif
-GC_SRC= gc.c
+# Nothing to do for after-grovel-headers.
+.PHONY: after-grovel-headers
+after-grovel-headers: