Audio plugin host https://kx.studio/carla
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.

Makefile 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/make -f
  2. # Makefile for dgl #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=dgl
  8. include ../Makefile.mk
  9. # ----------------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(DGL_FLAGS) -Isrc
  11. # ----------------------------------------------------------------------------------------------------------------------------
  12. OBJS = \
  13. $(OBJDIR)/Application.cpp.o \
  14. $(OBJDIR)/Color.cpp.o \
  15. $(OBJDIR)/Geometry.cpp.o \
  16. $(OBJDIR)/Image.cpp.o \
  17. $(OBJDIR)/ImageWidgets.cpp.o \
  18. $(OBJDIR)/NanoVG.cpp.o \
  19. $(OBJDIR)/Widget.cpp.o
  20. ifeq ($(MACOS),true)
  21. OBJS += $(OBJDIR)/Window.mm.o
  22. else
  23. OBJS += $(OBJDIR)/Window.cpp.o
  24. endif
  25. OBJS_wine = \
  26. $(OBJDIR)/Application.cpp-wine.o \
  27. $(OBJDIR)/Color.cpp-wine.o \
  28. $(OBJDIR)/Geometry.cpp-wine.o \
  29. $(OBJDIR)/Image.cpp-wine.o \
  30. $(OBJDIR)/ImageWidgets.cpp-wine.o \
  31. $(OBJDIR)/Widget.cpp-wine.o \
  32. $(OBJDIR)/Window.cpp-wine.o
  33. # ----------------------------------------------------------------------------------------------------------------------------
  34. all: $(MODULEDIR)/$(MODULENAME).a
  35. wine: $(MODULEDIR)/$(MODULENAME).wine.a
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. clean:
  38. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(MODULEDIR)/$(MODULENAME).wine.a
  39. debug:
  40. $(MAKE) DEBUG=true
  41. # ----------------------------------------------------------------------------------------------------------------------------
  42. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  43. -@mkdir -p $(MODULEDIR)
  44. @echo "Creating $(MODULENAME).a"
  45. @rm -f $@
  46. @$(AR) crs $@ $^
  47. $(MODULEDIR)/$(MODULENAME).wine.a: $(OBJS_wine)
  48. -@mkdir -p $(MODULEDIR)
  49. @echo "Creating $(MODULENAME).wine.a"
  50. @rm -f $@
  51. @$(AR) crs $@ $^
  52. # ----------------------------------------------------------------------------------------------------------------------------
  53. $(OBJDIR)/%.cpp.o: src/%.cpp
  54. -@mkdir -p $(OBJDIR)
  55. @echo "Compiling $<"
  56. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  57. $(OBJDIR)/%.cpp-wine.o: src/%.cpp
  58. -@mkdir -p $(OBJDIR)
  59. @echo "Compiling $< (Wine)"
  60. @$(WINECC) $< $(BUILD_CXX_FLAGS) -c -o $@
  61. $(OBJDIR)/Window.mm.o: src/Window.cpp
  62. -@mkdir -p $(OBJDIR)
  63. @echo "Compiling $<"
  64. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  65. -include $(OBJS:%.o=%.d)
  66. -include $(OBJS_wine:%.o=%.d)
  67. # ----------------------------------------------------------------------------------------------------------------------------