Makefile 1.1 KB

123456789101112131415161718192021222324
  1. URHO_DIR=/cvs/Urho3D
  2. LIBS = -framework AudioUnit -framework Carbon -framework Cocoa -framework CoreAudio \
  3. -framework ForceFeedback -framework IOKit -framework OpenGL -framework CoreServices \
  4. -L$(URHO_DIR)/lib -lUrho3D -ldl -lpthread -lpthread -lpthread
  5. CPPFLAGS = -I$(URHO_DIR)/include -I.. -g
  6. RUNTIME_SOURCES = \
  7. runtime.cpp \
  8. ../generated/binding.cpp
  9. RUNTIME_OBJECTS = $(patsubst %.cpp,%.o,$(RUNTIME_SOURCES))
  10. all: check-links libmono-urho.a
  11. libmono-urho.a: $(RUNTIME_OBJECTS)
  12. ar cruv libmono-urho.a $(RUNTIME_OBJECTS)
  13. check-links:
  14. if test ! -e $(URHO_DIR)/include/SDL; then (cd $(URHO_DIR)/include; ln -s ../Source/ThirdParty/SDL/include SDL); fi
  15. if test ! -e $(URHO_DIR)/include/Box2D; then (cd $(URHO_DIR)/include; ln -s ../Source/ThirdParty/Box2D/Box2D Box2D); fi
  16. if test ! -e $(URHO_DIR)/include/Bullet; then (cd $(URHO_DIR)/include; ln -s ../Source/ThirdParty/Bullet/src Bullet); fi
  17. if test ! -e $(URHO_DIR)/include/GLEW; then (cd $(URHO_DIR)/include; ln -s ../Source/ThirdParty/GLEW GLEW); fi
  18. if test ! -e $(URHO_DIR)/include/kNet; then (cd $(URHO_DIR)/include; ln -s ../Source/ThirdParty/kNet/include kNet); fi