DISTRHO Plugin Framework
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.

74 lines
2.1KB

  1. #!/usr/bin/make -f
  2. # Makefile for DGL #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. # debug mode by default
  7. DEBUG=true
  8. include ../Makefile.base.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_C_FLAGS += $(DGL_FLAGS) -I..
  11. BUILD_CXX_FLAGS += $(DGL_FLAGS) -I.. -I../dgl/src/pugl-upstream/include -DDONT_SET_USING_DGL_NAMESPACE
  12. LINK_FLAGS += -lpthread
  13. # TODO fix within pugl
  14. BUILD_CXX_FLAGS += -Wno-missing-field-initializers -Wno-extra
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. # TODO
  17. src=Application.cpp
  18. TESTS = $(src:%.cpp=../build/tests/%)
  19. OBJS = $(TESTS:%=%.o)
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. ifeq ($(HAVE_CAIRO),true)
  22. endif
  23. ifeq ($(HAVE_OPENGL),true)
  24. endif
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. all: $(TESTS)
  27. # ---------------------------------------------------------------------------------------------------------------------
  28. ../build/tests/%: ../build/tests/%.cpp.o
  29. @echo "Linking $*"
  30. $(SILENT)$(CXX) $< $(LINK_FLAGS) $(DGL_SYSTEM_LIBS) -o $@
  31. $@
  32. valgrind --leak-check=full $@
  33. # ---------------------------------------------------------------------------------------------------------------------
  34. ../build/tests/%.c.o: %.c
  35. -@mkdir -p ../build/tests
  36. @echo "Compiling $<"
  37. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  38. ../build/tests/%.cpp.o: %.cpp
  39. -@mkdir -p ../build/tests
  40. @echo "Compiling $<"
  41. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  42. # ---------------------------------------------------------------------------------------------------------------------
  43. clean:
  44. rm -rf ../build/tests
  45. debug:
  46. $(MAKE) DEBUG=true
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. -include $(OBJS:%.o=%.d)
  49. # ---------------------------------------------------------------------------------------------------------------------