From 6e7e408eb8f8ab8a4644c9c412b0ced453a04d22 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 9 Feb 2019 05:34:55 +0100 Subject: [PATCH] tools/sdl_image_test: build for ATARICROSS --- tools/sdl_image_test/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/sdl_image_test/Makefile b/tools/sdl_image_test/Makefile index ba81d034..bf89e83a 100644 --- a/tools/sdl_image_test/Makefile +++ b/tools/sdl_image_test/Makefile @@ -22,6 +22,11 @@ PKGCONFIG = $(PKGCONFIG_PATH) $(shell which i686-w64-mingw32-pkg-config || which SDLCONFIG = $(shell which ../../3rdparty/usr/bin/$(SDLCONFIGNAME) || which /usr/local/cross-tools/i386-mingw32/bin/$(SDLCONFIGNAME)) BIN := $(BIN).exe else +ifdef ATARICROSS +ARCH ?= m68k +CC = $(shell which $(ARCH)-atari-mint-gcc) +BIN := $(BIN).ttp +endif PKGCONFIG = $(PKGCONFIG_PATH) pkg-config SDLCONFIG = $(shell which ../../3rdparty/usr/bin/$(SDLCONFIGNAME) || which $(SDLCONFIGNAME)) endif @@ -38,6 +43,9 @@ LDLIBS += -lSDL_image endif else LDLIBS += $(shell $(PKGCONFIG) $(SDLIMAGE) --libs-only-l) +ifdef ATARICROSS +LDLIBS += -ltiff -ljpeg -lpng -lz -lm +endif LDFLAGS = $(shell $(PKGCONFIG) $(SDLIMAGE) --libs-only-L) endif