]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
OS X: support homebrew by MACLIBDIR=/usr/local/lib
authorRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 19:29:05 +0000 (20:29 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 19:29:05 +0000 (20:29 +0100)
Makefile

index 3323a90da34369b40826316e9d4bb0cc0e5bd1b1..35ca7188dff661e81adb96b26c92f2142425ee96 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -197,11 +197,11 @@ ifeq ($(OS),Darwin)
        CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
        CFLAGS_COMMON += -fPIC
        CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
-       CPPFLAGS_COMMON += -I/opt/local/include -I/sw/include -I/usr/X11R6/include
-       LDFLAGS_COMMON += -L/opt/local/lib -L/sw/lib -L/usr/X11R6/lib
+       MACLIBDIR ?= /opt/local/lib
+       CPPFLAGS_COMMON += -I$(MACLIBDIR)/../include -I/usr/X11R6/include
+       LDFLAGS_COMMON += -L$(MACLIBDIR) -L/usr/X11R6/lib
        LDFLAGS_DLL += -dynamiclib -ldl
        EXE ?= ppc
-       MACLIBDIR ?= /opt/local/lib
        A = a
        DLL = dylib
        MWINDOWS =