# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
-CFLAGS = -g -Wall -O2 -fdollars-in-identifiers
-OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c darwin-dlshim.c darwin-langinfo.c
+CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
+LINKFLAGS += -mmacosx-version-min=10.4
+
+OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c
+
OS_LIBS = -lSystem -lc
+ifdef LISP_FEATURE_SB_CORE_COMPRESSION
+ OS_LIBS += -lz
+endif
CC = gcc
CPPFLAGS += -no-cpp-precomp
-GC_SRC = $(shell if grep LISP_FEATURE_GENCGC genesis/config.h \
- > /dev/null 2>&1; \
- then echo "gencgc.c"; \
- else echo "cheneygc.c" ; fi)
+ifdef LISP_FEATURE_GENCGC
+ GC_SRC = gencgc.c
+else
+ GC_SRC = cheneygc.c
+endif
.PHONY: after-grovel-headers