From 4a11b8f6218b898e419cad535c207b600952c1ce Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 18 Oct 2009 16:33:59 +0000 Subject: [PATCH] updated Makefile git-svn-id: svn://anubis/misc/wfobj@186 bd8a9e45-a331-0410-811e-c64571078777 --- Makefile | 10 ++++------ WFObj.cc | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6a260c3..699f1ea 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,10 @@ -CXX := g++ -CXXFLAGS := -O2 -OBJS := WFObj.o +TARGET := WFObj.o -all: $(OBJS) +all: $(TARGET) -%.o: %.cc %.hh - $(CXX) -c -o $@ $< $(CXXFLAGS) +%.o: %.cc + $(CXX) -c -o $@ $(CXXFLAGS) $< clean: -rm -f *~ *.o diff --git a/WFObj.cc b/WFObj.cc index 112f489..9a5943b 100644 --- a/WFObj.cc +++ b/WFObj.cc @@ -251,7 +251,7 @@ GLuint WFObj::render(bool doTextureInfo) bool valid = true; for (int j = 0; j < 3; j++) { - if (vertexIndices[j] > vertices[j].size()) + if (vertexIndices[j] > (int) vertices[j].size()) { valid = false; break;