diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-04 02:03:02 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-04 02:03:02 +0100 |
commit | 9d2ea408a05953869c678fbb03b6a6dbbc929b2f (patch) | |
tree | f0040e731fad8b4f6354cb2c8380655cc65dcb4c | |
parent | eed8ea39d85400821040ac75855608cafb3e72d5 (diff) |
First steps to support the darwin9 compiler.
-rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,7 +1,13 @@ +ifeq ($(SYSTEM),) SYSTEM=$(shell uname) +endif +TRUESYSTEM=$(shell uname) MACHINE=$(shell uname -m) DISTRIB=$(shell cat /etc/issue | cut -f 1 -d\ | head -1) GL_GLUE=gl-glue.s +CC = gcc +CXX = g++ +LD = g++ ifeq ($(SYSTEM),Darwin) ARCH_FLAGS=-arch i386 LDFLAGS_MESA=-all_load ../Mesa-7.4.4/lib/libGLU.a ../Mesa-7.4.4/lib/libmesa.a ../Mesa-7.4.4/lib/libglapi.a ../Mesa-7.4.4/lib/osmesa.o @@ -16,6 +22,13 @@ LDFLAGS_GL = -L/usr/X11/lib -lGLU -lGL -X11 -dylib_file \ /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib GL_GLUE=gl-glue-fat.o STRIP = strip -x +ifeq ($(TRUESYSTEM),Linux) +CC = i686-apple-darwin9-gcc-4.0.1 +CXX = i686-apple-darwin9-g++-4.0.1 +LD = i686-apple-darwin9-ld -arch i386 +STRIP = i686-apple-darwin9-strip -x +ARCH_FLAGS = +endif else ARCH_FLAGS=-march=i686 -m32 ASFLAGS=-march=i686 --32 @@ -39,8 +52,6 @@ LD = g++ -m32 LDFLAGS_GL = -lGLU -lGL STRIP = strip --strip-unneeded endif -CC = gcc -CXX = g++ INCLUDES = \ -I../mogltk/include \ |