+LDLIBS_LIBGCC := $(shell $(CC) -print-file-name=libgcc.a)
+LDLIBS += $(LDLIBS_LIBGCC)
+
+ifeq ($(shell m68k-elf-gcc -dD -E -c - --param=min-pagesize=0 < /dev/null > /dev/null 2>&1 && echo ok),ok)
+CFLAGS += --param=min-pagesize=0
+endif
+
+SUFFIX := $(shell git describe --always --dirty)
+ifdef PICO
+CFLAGS += -DPICO
+SUFFIX := $(SUFFIX)-for-pd
+endif
+TARGET_BASE = testpico
+TARGET = $(TARGET_BASE)-$(SUFFIX)
+OBJS = sega_gcc.o main.o asmtools.o