From 018d932591b3d20b9bc7bc808706707a88233bb4 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 26 Oct 2009 00:25:40 -0700 Subject: makefiles: add support for command-line builds of Mac Tiles executables Signed-off-by: Steven Noonan --- crawl-ref/source/rltiles/makefile.unix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/rltiles/makefile.unix') diff --git a/crawl-ref/source/rltiles/makefile.unix b/crawl-ref/source/rltiles/makefile.unix index 3a1abb71ed..9a7fba479e 100644 --- a/crawl-ref/source/rltiles/makefile.unix +++ b/crawl-ref/source/rltiles/makefile.unix @@ -20,6 +20,9 @@ LDFLAGS += $(SDL_LDFLAGS) -lSDL_image $(PNG_LIB) ifneq (,$(findstring MINGW,$(uname_S))) LDFLAGS += -lgdi32 -lwinmm endif +ifeq ($(uname_S),Darwin) +LDFLAGS += -framework AppKit -framework AudioUnit -framework Carbon -framework IOKit -framework OpenGL +endif # Attempt to use a full compiler name, to make # distcc builds work nicely. @@ -31,6 +34,9 @@ ifeq ($(shell which $(LMACH)gcc 2> /dev/null),) LMACH := endif CXX = $(LMACH)g++ +ifdef ARCHS +CXX += $(ARCHS) +endif DELETE = rm -f -- cgit v1.2.3-54-g00ecf