improve os x makefiles
[mussa.git] / Makefile.noqt
index 5431ab1efb825a38e667a9363075fb23b07bbf95..8599b3fbc3f88879c7b7526a4b2a2c1f33ea4d82 100644 (file)
@@ -1,14 +1,18 @@
 BASEDIR := ./
+CURDIR := $(shell pwd)
 
 BINEXT := 
 OBJEXT := .o
 LIBEXT := .a
 
 CXX := g++ 
-CXXFLAGS := -g -fPIC -I/usr/include/python2.3
-LDFLAGS := 
-
-CURDIR := $(shell pwd)
+CXXFLAGS := -g -fPIC -I/usr/include/python2.3 -I$(CURDIR)
+# needed for linux (as darwin doesn't put gl.h in a directory starting with
+# GL
+CXXFLAGS += -I/usr/include/GL
+# needed for darwin
+CXXFLAGS += -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/include
+LDFLAGS := -L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -L/usr/local/lib
 
 # each module will add to this, .os are derived from it
 TARGETLIBS :=