makefile.old
changeset 131 d0ca5772f27d
parent 122 c3af28d0f07c
child 152 c50f3b7d3fa0
--- a/makefile.old	Wed May 12 19:09:17 2010 -0400
+++ b/makefile.old	Thu May 13 00:13:57 2010 +0200
@@ -101,12 +101,15 @@
   	LDFLAGS += -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework Carbon -framework OpenAL
   	LDFLAGS += ./libSDL-1.2.0.dylib ./libSDLmain-osx.a
 else
-	CXX := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
-	CC := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/gcc
-	LD := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
+	CXX := g++
+	CC := gcc
+	LD := g++
 
   	CFLAGS += -DPLATFORM_LINUX=1
-  	LDFLAGS += ./libSDL-1.2.so.0 -Wl,-rpath,\$$ORIGIN
+  	LDFLAGS += `pkg-config --libs sdl`
+	INCLUDES += `pkg-config --cflags sdl`
+	# Don't use bundled headers
+	SDLDIR := /dummy
 
   	ifeq ($(strip $(use_devil)),true)
     	LDFLAGS += ./libIL.so.1 ./libILU.so.1 ./libILUT.so.1
@@ -115,7 +118,10 @@
   	ifeq ($(strip $(use_fmod)),true)
     	POSTLDFLAGS += -lpthread ./libfmod-linux-x86.a
   	else
-    	LDFLAGS += ./libopenal.so.1
+    	LDFLAGS += `pkg-config --libs openal`
+    	INCLUDES += `pkg-config --cflags openal`
+	# Don't use bundled headers
+	OPENALDIR := /dummy
   	endif
 endif