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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. ifneq ($(MACOS),true)
  12. WINE_FLAGS = -I/usr/include/wine/wine/windows
  13. WINE_FLAGS += -I/usr/include/wine-development/windows
  14. WINE_FLAGS += -I/opt/wine-devel/include/wine/windows
  15. endif
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. OBJS = \
  18. $(OBJDIR)/Application.cpp.o \
  19. $(OBJDIR)/Color.cpp.o \
  20. $(OBJDIR)/Geometry.cpp.o \
  21. $(OBJDIR)/Image.cpp.o \
  22. $(OBJDIR)/ImageWidgets.cpp.o \
  23. $(OBJDIR)/NanoVG.cpp.o \
  24. $(OBJDIR)/Widget.cpp.o
  25. ifeq ($(MACOS),true)
  26. OBJS += $(OBJDIR)/Window.mm.o
  27. else
  28. OBJS += $(OBJDIR)/Window.cpp.o
  29. endif
  30. OBJS_wine = \
  31. $(OBJDIR)/Application.cpp-wine.o \
  32. $(OBJDIR)/Color.cpp-wine.o \
  33. $(OBJDIR)/Geometry.cpp-wine.o \
  34. $(OBJDIR)/Image.cpp-wine.o \
  35. $(OBJDIR)/ImageWidgets.cpp-wine.o \
  36. $(OBJDIR)/Widget.cpp-wine.o \
  37. $(OBJDIR)/Window.cpp-wine.o
  38. # ---------------------------------------------------------------------------------------------------------------------
  39. all: $(MODULEDIR)/$(MODULENAME).a
  40. wine: $(MODULEDIR)/$(MODULENAME).wine.a
  41. # ---------------------------------------------------------------------------------------------------------------------
  42. clean:
  43. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(MODULEDIR)/$(MODULENAME).wine.a
  44. debug:
  45. $(MAKE) DEBUG=true
  46. # ---------------------------------------------------------------------------------------------------------------------
  47. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  48. -@mkdir -p $(MODULEDIR)
  49. @echo "Creating $(MODULENAME).a"
  50. @rm -f $@
  51. @$(AR) crs $@ $^
  52. $(MODULEDIR)/$(MODULENAME).wine.a: $(OBJS_wine)
  53. -@mkdir -p $(MODULEDIR)
  54. @echo "Creating $(MODULENAME).wine.a"
  55. @rm -f $@
  56. @$(AR) crs $@ $^
  57. # ---------------------------------------------------------------------------------------------------------------------
  58. $(OBJDIR)/%.cpp.o: src/%.cpp
  59. -@mkdir -p $(OBJDIR)
  60. @echo "Compiling $<"
  61. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  62. $(OBJDIR)/%.cpp-wine.o: src/%.cpp
  63. -@mkdir -p $(OBJDIR)
  64. @echo "Compiling $< (Wine)"
  65. @$(WINECC) $< $(BUILD_CXX_FLAGS) $(WINE_FLAGS) -c -o $@
  66. $(OBJDIR)/Window.mm.o: src/Window.cpp
  67. -@mkdir -p $(OBJDIR)
  68. @echo "Compiling $<"
  69. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  70. -include $(OBJS:%.o=%.d)
  71. -include $(OBJS_wine:%.o=%.d)
  72. # ---------------------------------------------------------------------------------------------------------------------