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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. # needed by sofd right now, fix later
  12. BUILD_CXX_FLAGS += -fpermissive
  13. # ----------------------------------------------------------------------------------------------------------------------------
  14. OBJS = \
  15. $(OBJDIR)/App.cpp.o \
  16. $(OBJDIR)/Color.cpp.o \
  17. $(OBJDIR)/Geometry.cpp.o \
  18. $(OBJDIR)/Image.cpp.o \
  19. $(OBJDIR)/ImageAboutWindow.cpp.o \
  20. $(OBJDIR)/ImageButton.cpp.o \
  21. $(OBJDIR)/ImageKnob.cpp.o \
  22. $(OBJDIR)/ImageSlider.cpp.o \
  23. $(OBJDIR)/ImageSwitch.cpp.o \
  24. $(OBJDIR)/NanoVG.cpp.o \
  25. $(OBJDIR)/Widget.cpp.o
  26. ifeq ($(MACOS),true)
  27. OBJS += $(OBJDIR)/Window.mm.o
  28. else
  29. OBJS += $(OBJDIR)/Window.cpp.o
  30. endif
  31. # ----------------------------------------------------------------------------------------------------------------------------
  32. all: $(MODULEDIR)/$(MODULENAME).a
  33. # ----------------------------------------------------------------------------------------------------------------------------
  34. clean:
  35. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  36. debug:
  37. $(MAKE) DEBUG=true
  38. # ----------------------------------------------------------------------------------------------------------------------------
  39. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  40. -@mkdir -p $(MODULEDIR)
  41. @echo "Creating $(MODULENAME).a"
  42. @rm -f $@
  43. @$(AR) crs $@ $^
  44. # ----------------------------------------------------------------------------------------------------------------------------
  45. $(OBJDIR)/%.cpp.o: src/%.cpp
  46. -@mkdir -p $(OBJDIR)
  47. @echo "Compiling $<"
  48. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  49. $(OBJDIR)/Window.mm.o: src/Window.cpp
  50. -@mkdir -p $(OBJDIR)
  51. @echo "Compiling $<"
  52. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  53. -include $(OBJS:%.o=%.d)
  54. # ----------------------------------------------------------------------------------------------------------------------------