summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/rltiles/makefile.unix
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-16 10:35:31 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-16 11:34:08 -0700
commit67daccbb0e957159e2d411e95f652440cf612807 (patch)
tree544ec87ca6833f4888d6181b742c3544da11e9a9 /crawl-ref/source/rltiles/makefile.unix
parent1241f456b2eda5565e9a5d45faf0ae692539defe (diff)
downloadcrawl-ref-67daccbb0e957159e2d411e95f652440cf612807.tar.gz
crawl-ref-67daccbb0e957159e2d411e95f652440cf612807.zip
rltiles: fix MinGW build
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/rltiles/makefile.unix')
-rw-r--r--crawl-ref/source/rltiles/makefile.unix6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/rltiles/makefile.unix b/crawl-ref/source/rltiles/makefile.unix
index 7db3c36823..cc5f63bbe8 100644
--- a/crawl-ref/source/rltiles/makefile.unix
+++ b/crawl-ref/source/rltiles/makefile.unix
@@ -20,17 +20,17 @@ else
SDLCONFIG := $(shell which sdl-config 2> /dev/null)
ifeq ($(SDLCONFIG),)
-SDLCONFIG := $(shell pwd)/contrib/install/bin/sdl-config
+SDLCONFIG := $(shell pwd)/../contrib/install/bin/sdl-config
endif
SDL_CFLAGS := $(shell $(SDLCONFIG) --cflags 2> /dev/null)
SDL_LDFLAGS := $(shell $(SDLCONFIG) --libs 2> /dev/null)
PNG_INCLUDE := $(shell pkg-config libpng --cflags 2> /dev/null)
-PNG_LIB := $(shell pkg-config libpng --libs 2> /dev/null)
+PNG_LIB := $(shell pkg-config libpng --libs 2> /dev/null || echo "-lpng -lz")
CFLAGS := -I../contrib/install/include $(SDL_CFLAGS) $(PNG_INCLUDE)
-LDFLAGS := -L../contrib/install/lib $(SDL_LDFLAGS) -lSDL_image $(PNG_LIB) -lz
+LDFLAGS := -L../contrib/install/lib $(SDL_LDFLAGS) -lSDL_image $(PNG_LIB)
endif