Simple game engine with complete export to scripting language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.4 KiB

  1. include ../Makefile.common
  2. OBJ += $(patsubst %.cpp,%.o,$(wildcard src/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard src/*/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard src/*/*/*.cpp))
  3. LIBNAME = libbullet.a
  4. CXXFLAGS = -Isrc
  5. all: $(LIBNAME)
  6. $(LIBNAME): $(OBJ)
  7. @echo Creating archive $@
  8. @ar -crsu $@ $(OBJ)
  9. @echo
  10. clean:
  11. -@$(RM) src$(SLASH)*.o
  12. -@$(RM) src$(SLASH)*.d
  13. -@$(RM) src$(SLASH)LinearMath$(SLASH)*.o
  14. -@$(RM) src$(SLASH)LinearMath$(SLASH)*.d
  15. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)ConstraintSolver$(SLASH)*.o
  16. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)ConstraintSolver$(SLASH)*.d
  17. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)Dynamics$(SLASH)*.o
  18. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)Dynamics$(SLASH)*.d
  19. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)Vehicle$(SLASH)*.o
  20. -@$(RM) src$(SLASH)BulletDynamics$(SLASH)Vehicle$(SLASH)*.d
  21. -@$(RM) src$(SLASH)BulletCollision$(SLASH)BroadphaseCollision$(SLASH)*.o
  22. -@$(RM) src$(SLASH)BulletCollision$(SLASH)BroadphaseCollision$(SLASH)*.d
  23. -@$(RM) src$(SLASH)BulletCollision$(SLASH)CollisionDispatch$(SLASH)*.o
  24. -@$(RM) src$(SLASH)BulletCollision$(SLASH)CollisionDispatch$(SLASH)*.d
  25. -@$(RM) src$(SLASH)BulletCollision$(SLASH)CollisionShapes$(SLASH)*.o
  26. -@$(RM) src$(SLASH)BulletCollision$(SLASH)CollisionShapes$(SLASH)*.d
  27. -@$(RM) src$(SLASH)BulletCollision$(SLASH)NarrowPhaseCollision$(SLASH)*.o
  28. -@$(RM) src$(SLASH)BulletCollision$(SLASH)NarrowPhaseCollision$(SLASH)*.d
  29. -@$(RM) $(LIBNAME)