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 += -Wno-type-limits -fpermissive
  13. # needed by stb_image
  14. BUILD_CXX_FLAGS += -Wno-misleading-indentation -Wno-shift-negative-value
  15. # ----------------------------------------------------------------------------------------------------------------------------
  16. OBJS = \
  17. $(OBJDIR)/Application.cpp.o \
  18. $(OBJDIR)/Color.cpp.o \
  19. $(OBJDIR)/Geometry.cpp.o \
  20. $(OBJDIR)/Image.cpp.o \
  21. $(OBJDIR)/ImageWidgets.cpp.o \
  22. $(OBJDIR)/NanoVG.cpp.o \
  23. $(OBJDIR)/Resources.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. # ----------------------------------------------------------------------------------------------------------------------------
  31. all: $(MODULEDIR)/$(MODULENAME).a
  32. # ----------------------------------------------------------------------------------------------------------------------------
  33. clean:
  34. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  35. debug:
  36. $(MAKE) DEBUG=true
  37. # ----------------------------------------------------------------------------------------------------------------------------
  38. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  39. -@mkdir -p $(MODULEDIR)
  40. @echo "Creating $(MODULENAME).a"
  41. @rm -f $@
  42. @$(AR) crs $@ $^
  43. # ----------------------------------------------------------------------------------------------------------------------------
  44. $(OBJDIR)/%.cpp.o: src/%.cpp
  45. -@mkdir -p $(OBJDIR)
  46. @echo "Compiling $<"
  47. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  48. $(OBJDIR)/Window.mm.o: src/Window.cpp
  49. -@mkdir -p $(OBJDIR)
  50. @echo "Compiling $<"
  51. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  52. -include $(OBJS:%.o=%.d)
  53. # ----------------------------------------------------------------------------------------------------------------------------