updated Makefile

git-svn-id: svn://anubis/misc/wfobj@186 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-10-18 16:33:59 +00:00
parent 663669a407
commit 4a11b8f621
2 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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;