X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=makefile;h=9f3ef967bf056e4d7a7db4dbbdd15e1237f90d24;hb=65fe5d46ff8f86bcf08cf61012f04e3a3d4bc30e;hp=f80119f61f935bb71bfe561d3e7a766505d4f372;hpb=13e8f892a042b19ef6521491625ae855e4cc8ef3;p=lugaru.git diff --git a/makefile b/makefile index f80119f..9f3ef96 100644 --- a/makefile +++ b/makefile @@ -11,13 +11,14 @@ 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 /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++ -CC := ccache /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/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 := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++ @@ -39,6 +40,7 @@ DEFINES := \ -DTRUE=1 \ -DFALSE=0 \ -Dstricmp=strcasecmp \ + -DBinIO_STDINT_HEADER="" \ INCLUDES := \ -I$(SRCDIR) \ @@ -71,7 +73,6 @@ ifeq ($(strip $(macosx)),true) else CFLAGS += -DPLATFORM_LINUX=1 LDFLAGS := ./libSDL-1.2.so.0 - POSTLDFLAGS := ./libGLU.a ifeq ($(strip $(use_devil)),true) LDFLAGS += ./libIL.so.1 ./libILU.so.1 ./libILUT.so.1 @@ -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