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.
 
 
 

76 lines
1.6 KiB

  1. include ../Makefile.common
  2. CXXFLAGS += -I../glfw/include
  3. LDFLAGS += -L../glfw -lglfw
  4. CXXFLAGS += -I../trimeshloader/include
  5. LDFLAGS += -L../trimeshloader -ltrimeshloader
  6. CXXFLAGS += -I../physfs
  7. LDFLAGS += -L../physfs -lphysfs
  8. CXXFLAGS += -I../ftgl
  9. LDFLAGS += -L../ftgl -lftgl
  10. CXXFLAGS += -I../freetype/include
  11. LDFLAGS += -L../freetype -lfreetype
  12. CXXFLAGS += -I../corona/src
  13. LDFLAGS += -L../corona -lcorona
  14. CXXFLAGS += -I../glew/include
  15. LDFLAGS += -L../glew -lglew
  16. CXXFLAGS += -I../squirrel/include
  17. LDFLAGS += -L../squirrel -lsquirrel
  18. CXXFLAGS += -I../ode/include
  19. LDFLAGS += -L../ode -lode
  20. CXXFLAGS += -I../tinyxml
  21. LDFLAGS += -L../tinyxml -ltinyxml
  22. CXXFLAGS += -I../libpng
  23. LDFLAGS += -L../libpng -lpng
  24. LDFLAGS += -L../zlib -lz
  25. ifeq ($(OS),WIN32)
  26. LDFLAGS += -lglu32 -lwinmm -lole32 -lws2_32 -lopengl32
  27. else
  28. LDFLAGS += -lm -lGL -lGLU -lX11 -lXxf86vm -lXext #-lopenal -Wl,-rpath=. -L/usr/X11R6/lib
  29. endif
  30. SRC = $(wildcard */*.cpp) $(wildcard *.cpp)
  31. INC = $(wildcard */*.h) $(wildcard *.h)
  32. OBJ = $(patsubst %.cpp,%.o,$(SRC) )
  33. DEP = $(patsubst %.cpp,%.d,$(SRC) )
  34. GCH = $(patsubst %.h,%.h.gch,$(INC) )
  35. NAME = redcore$(EXT)
  36. all: $(NAME)
  37. $(NAME): $(OBJ)
  38. @echo Linking $@...
  39. @g++ -o $(NAME) $(OBJ) $(LDFLAGS)
  40. @echo done
  41. obj: $(OBJ)
  42. @echo done
  43. clean:
  44. -@$(RMSUB) *.o
  45. -@$(RMSUB) *.d
  46. -@$(RMSUB) Utilities$(SLASH)*.o
  47. -@$(RMSUB) Utilities$(SLASH)*.d
  48. -@$(RMSUB) Math$(SLASH)*.o
  49. -@$(RMSUB) Math$(SLASH)*.d
  50. -@$(RM) $(NAME)
  51. -include $(SRC:%.cpp=%.d)
  52. %.h.gch: %.h
  53. @echo Compiling $@ ...
  54. @$(CXX) $(CXXFLAGS) -o $@ $<