+# -*- 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.
-CFLAGS += -Dalpha -Dosf1 -O0 -g -D_XOPEN_SOURCE=500 -D_OSF_SOURCE=500
-ASFLAGS += -Dalpha -Dosf1 #-ULANGUAGE_ASSEMBLY
-LD = ld -taso
-LINKFLAGS = -taso -non_shared # dynamic -v -g -Wl,-T -Wl,ld-script.alpha-linux
+CFLAGS += -Dosf1 -O0 -g -D_XOPEN_SOURCE=500 -D_OSF_SOURCE=500
+CFLAGS += -msg_disable newlocale
+ASFLAGS += -Dosf1 #-ULANGUAGE_ASSEMBLY
+LD = ld -xtaso
+LINKFLAGS = -non_shared # dynamic -v -g -Wl,-T -Wl,ld-script.alpha-linux
# Digital^WCompaq^WHP's cc declares `static inline' functions to exist
# in multiple places in the binary; we add the '-g' flag to suppress all
# internal (i.e. static) function names being spat out. GENESIS
%.s:%.S
cp $^ $@
-OS_SRC = osf1-os.c alpha-osf1-os.c os-common.c
-OS_LIBS= #-ldl
+# ... and let the main makefile clean the .s properly.
+OS_CLEAN_FILES += $(ASSEM_SRC)
+
+OS_SRC = osf1-os.c alpha-osf1-os.c
+OS_LIBS = #-ldl
+ifdef LISP_FEATURE_SB_CORE_COMPRESSION
+ OS_LIBS += -lz
+endif
+
+GC_SRC = cheneygc.c
-GC_SRC= cheneygc.c
+# Nothing to do for after-grovel-headers.
+.PHONY: after-grovel-headers
+after-grovel-headers: