X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=testpico%2FMakefile;h=4ee38fd807958605ea5c494e029d1be40312c53d;hb=refs%2Fremotes%2Fgithub%2Fmaster;hp=b8c7988bac611de256248c90f139eced184e5812;hpb=234c45567cc77a4eca9cddca7daaacab27cab767;p=megadrive.git diff --git a/testpico/Makefile b/testpico/Makefile index b8c7988..4ee38fd 100644 --- a/testpico/Makefile +++ b/testpico/Makefile @@ -16,6 +16,10 @@ CFLAGS += -Wall -g -O2 -m68000 -fomit-frame-pointer 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