aboutsummaryrefslogtreecommitdiff
path: root/tests/box2d
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-10 16:02:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-10 16:02:03 -0700
commit82fd5dba17bf753301c304e03ad75fab0c49d29a (patch)
treedd109b0ceb9b726d393f6aa91af200db159b71b6 /tests/box2d
parentf84537c333524d0841923eaec66604584bf77326 (diff)
box2d benchmark fixes
Diffstat (limited to 'tests/box2d')
-rw-r--r--tests/box2d/Benchmark.cpp1
-rw-r--r--tests/box2d/Makefile12
2 files changed, 5 insertions, 8 deletions
diff --git a/tests/box2d/Benchmark.cpp b/tests/box2d/Benchmark.cpp
index 914c13a0..46dbbcb0 100644
--- a/tests/box2d/Benchmark.cpp
+++ b/tests/box2d/Benchmark.cpp
@@ -26,7 +26,6 @@ typedef struct {
#include <math.h>
#include "Box2D/Box2D.h"
-#include "Bench2d.h"
using namespace std;
diff --git a/tests/box2d/Makefile b/tests/box2d/Makefile
index 13f62093..d37adaa4 100644
--- a/tests/box2d/Makefile
+++ b/tests/box2d/Makefile
@@ -48,16 +48,14 @@ OBJECTS = \
$(O)/Dynamics/Joints/b2WheelJoint.o \
$(O)/Rope/b2Rope.o
-all: box2d.o
-
-OPTS = -O2
+all: box2d.a
%.o: %.cpp
- $(CXX) -I. $< -o $@ $(OPTS)
+ $(CXX) -I. $< -o $@ -O2 -c
-box2d.o: $(OBJECTS)
- $(CXX) -o $@ $(OBJECTS) $(OPTS)
+box2d.a: $(OBJECTS)
+ $(AR) rvs $@ $(OBJECTS)
clean:
- rm box2d.o
+ rm box2d.a