X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=makefile;h=2719849431c66d7203f874efed313a544ac6f517;hb=7c0929d838b89843ccca9d679b3963ff8bdd35b8;hp=bac6da577b07ca85c2f23479a7fa6dff51fa37a3;hpb=61e25ddee408e4d86708a6bd3a33148c5b9a93b5;p=lugaru.git diff --git a/makefile b/makefile index bac6da5..2719849 100644 --- a/makefile +++ b/makefile @@ -11,16 +11,17 @@ LIBPNGDIR := libpng-1.2.8 JPEGLIBDIR := jpeg-6b ZLIBDIR := zlib-1.2.3 OPENALDIR := OpenAL +GLUDIR := GLU LIBOGGDIR := libogg-1.0 LIBVORBISDIR := libvorbis-1.0.1 EXE := $(RUNDIR)/lugaru-bin -CXX := ccache g++ -CC := ccache gcc +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 #CXX := g++ #CC := gcc -LD := g++ +LD := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++ #OPT := -O0 OPT := -O3 -fno-strict-aliasing -falign-loops=16 -fno-math-errno @@ -39,6 +40,7 @@ DEFINES := \ -DTRUE=1 \ -DFALSE=0 \ -Dstricmp=strcasecmp \ + -DBinIO_STDINT_HEADER="" \ INCLUDES := \ -I$(SRCDIR) \ @@ -70,8 +72,7 @@ ifeq ($(strip $(macosx)),true) APPLDFLAGS := $(SDLDIR)/lib/libSDL-1.2.0.dylib $(SDLDIR)/lib/libSDLmain-osx.a else CFLAGS += -DPLATFORM_LINUX=1 - LDFLAGS := ./libSDL-1.2.so.0 - POSTLDFLAGS := ./libGLU.a + LDFLAGS := ./libSDL-1.2.so.0 -Wl,-rpath,\$$ORIGIN ifeq ($(strip $(use_devil)),true) LDFLAGS += ./libIL.so.1 ./libILU.so.1 ./libILUT.so.1 @@ -80,7 +81,7 @@ else ifeq ($(strip $(use_fmod)),true) POSTLDFLAGS += -lpthread ./libfmod-linux-x86.a else - LDFLAGS += ./openal.so + LDFLAGS += ./libopenal.so.1 endif endif @@ -211,6 +212,24 @@ ZLIBSRCS = \ ZLIBSRCS := $(foreach f,$(ZLIBSRCS),$(ZLIBDIR)/$(f)) + +GLUSRCS := \ + dict.c \ + geom.c \ + memalloc.c \ + mesh.c \ + mipmap.c \ + normal.c \ + priorityq.c \ + render.c \ + sweep.c \ + tess.c \ + tessmono.c \ + util.c \ + +GLUSRCS := $(foreach f,$(GLUSRCS),$(GLUDIR)/$(f)) + + OGGSRCS := \ bitwise.o \ framing.o @@ -241,6 +260,9 @@ VORBISSRCS := \ VORBISSRCS := $(foreach f,$(VORBISSRCS),$(LIBVORBISDIR)/lib/$(f)) +ifeq ($(strip $(macosx)),false) + SRCS += $(GLUSRCS) +endif ifeq ($(strip $(use_devil)),false) SRCS += $(PNGSRCS) $(JPEGSRCS) $(ZLIBSRCS) @@ -294,6 +316,7 @@ clean: rm -f $(BINDIR)/*.o rm -f $(BINDIR)/$(SRCDIR)/*.o rm -f $(BINDIR)/$(SRCDIR)/logger/*.o + rm -f $(BINDIR)/$(GLUDIR)/*.o rm -f $(BINDIR)/$(LIBPNGDIR)/*.o rm -f $(BINDIR)/$(JPEGLIBDIR)/*.o rm -f $(BINDIR)/$(ZLIBDIR)/*.o