Created
December 6, 2011 23:12
-
-
Save kjmph/1440512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: box2d.js | |
%.bc: %.cpp | |
python emscripten/tools/emmaken.py -I../ $< -o $@ | |
box2d.bc: Collision/b2BroadPhase.bc Collision/b2CollideCircle.bc Collision/b2CollideEdge.bc Collision/b2CollidePolygon.bc Collision/b2Collision.bc Collision/b2Distance.bc Collision/b2DynamicTree.bc Collision/b2TimeOfImpact.bc Collision/Shapes/b2CircleShape.bc Collision/Shapes/b2EdgeShape.bc Collision/Shapes/b2ChainShape.bc Collision/Shapes/b2PolygonShape.bc Common/b2BlockAllocator.bc Common/b2Draw.bc Common/b2Math.bc Common/b2Settings.bc Common/b2StackAllocator.bc Common/b2Timer.bc Dynamics/b2Body.bc Dynamics/b2ContactManager.bc Dynamics/b2Fixture.bc Dynamics/b2Island.bc Dynamics/b2World.bc Dynamics/b2WorldCallbacks.bc Dynamics/Contacts/b2CircleContact.bc Dynamics/Contacts/b2Contact.bc Dynamics/Contacts/b2ContactSolver.bc Dynamics/Contacts/b2PolygonAndCircleContact.bc Dynamics/Contacts/b2EdgeAndCircleContact.bc Dynamics/Contacts/b2EdgeAndPolygonContact.bc Dynamics/Contacts/b2ChainAndCircleContact.bc Dynamics/Contacts/b2ChainAndPolygonContact.bc Dynamics/Contacts/b2PolygonContact.bc Dynamics/Joints/b2DistanceJoint.bc Dynamics/Joints/b2FrictionJoint.bc Dynamics/Joints/b2GearJoint.bc Dynamics/Joints/b2Joint.bc Dynamics/Joints/b2MouseJoint.bc Dynamics/Joints/b2PrismaticJoint.bc Dynamics/Joints/b2PulleyJoint.bc Dynamics/Joints/b2RevoluteJoint.bc Dynamics/Joints/b2RopeJoint.bc Dynamics/Joints/b2WeldJoint.bc Dynamics/Joints/b2WheelJoint.bc Rope/b2Rope.bc | |
llvm-link -o $@ Collision/b2BroadPhase.bc Collision/b2CollideCircle.bc Collision/b2CollideEdge.bc Collision/b2CollidePolygon.bc Collision/b2Collision.bc Collision/b2Distance.bc Collision/b2DynamicTree.bc Collision/b2TimeOfImpact.bc Collision/Shapes/b2CircleShape.bc Collision/Shapes/b2EdgeShape.bc Collision/Shapes/b2ChainShape.bc Collision/Shapes/b2PolygonShape.bc Common/b2BlockAllocator.bc Common/b2Draw.bc Common/b2Math.bc Common/b2Settings.bc Common/b2StackAllocator.bc Common/b2Timer.bc Dynamics/b2Body.bc Dynamics/b2ContactManager.bc Dynamics/b2Fixture.bc Dynamics/b2Island.bc Dynamics/b2World.bc Dynamics/b2WorldCallbacks.bc Dynamics/Contacts/b2CircleContact.bc Dynamics/Contacts/b2Contact.bc Dynamics/Contacts/b2ContactSolver.bc Dynamics/Contacts/b2PolygonAndCircleContact.bc Dynamics/Contacts/b2EdgeAndCircleContact.bc Dynamics/Contacts/b2EdgeAndPolygonContact.bc Dynamics/Contacts/b2ChainAndCircleContact.bc Dynamics/Contacts/b2ChainAndPolygonContact.bc Dynamics/Contacts/b2PolygonContact.bc Dynamics/Joints/b2DistanceJoint.bc Dynamics/Joints/b2FrictionJoint.bc Dynamics/Joints/b2GearJoint.bc Dynamics/Joints/b2Joint.bc Dynamics/Joints/b2MouseJoint.bc Dynamics/Joints/b2PrismaticJoint.bc Dynamics/Joints/b2PulleyJoint.bc Dynamics/Joints/b2RevoluteJoint.bc Dynamics/Joints/b2RopeJoint.bc Dynamics/Joints/b2WeldJoint.bc Dynamics/Joints/b2WheelJoint.bc Rope/b2Rope.bc | |
box2d.opt.bc: box2d.bc | |
opt -stats -std-compile-opts $< -o $@ | |
box2d.js: box2d.opt.bc | |
python emscripten/emscripten.py $< > $@ | |
clean: | |
rm Collision/b2BroadPhase.bc Collision/b2CollideCircle.bc Collision/b2CollideEdge.bc Collision/b2CollidePolygon.bc Collision/b2Collision.bc Collision/b2Distance.bc Collision/b2DynamicTree.bc Collision/b2TimeOfImpact.bc Collision/Shapes/b2CircleShape.bc Collision/Shapes/b2EdgeShape.bc Collision/Shapes/b2ChainShape.bc Collision/Shapes/b2PolygonShape.bc Common/b2BlockAllocator.bc Common/b2Draw.bc Common/b2Math.bc Common/b2Settings.bc Common/b2StackAllocator.bc Common/b2Timer.bc Dynamics/b2Body.bc Dynamics/b2ContactManager.bc Dynamics/b2Fixture.bc Dynamics/b2Island.bc Dynamics/b2World.bc Dynamics/b2WorldCallbacks.bc Dynamics/Contacts/b2CircleContact.bc Dynamics/Contacts/b2Contact.bc Dynamics/Contacts/b2ContactSolver.bc Dynamics/Contacts/b2PolygonAndCircleContact.bc Dynamics/Contacts/b2EdgeAndCircleContact.bc Dynamics/Contacts/b2EdgeAndPolygonContact.bc Dynamics/Contacts/b2ChainAndCircleContact.bc Dynamics/Contacts/b2ChainAndPolygonContact.bc Dynamics/Contacts/b2PolygonContact.bc Dynamics/Joints/b2DistanceJoint.bc Dynamics/Joints/b2FrictionJoint.bc Dynamics/Joints/b2GearJoint.bc Dynamics/Joints/b2Joint.bc Dynamics/Joints/b2MouseJoint.bc Dynamics/Joints/b2PrismaticJoint.bc Dynamics/Joints/b2PulleyJoint.bc Dynamics/Joints/b2RevoluteJoint.bc Dynamics/Joints/b2RopeJoint.bc Dynamics/Joints/b2WeldJoint.bc Dynamics/Joints/b2WheelJoint.bc Rope/b2Rope.bc box2d.bc box2d.opt.bc box2d.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment