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 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. # ----------------------------------------------------------------------------------------------------------------------------
  26. all: $(MODULEDIR)/$(MODULENAME).a
  27. # ----------------------------------------------------------------------------------------------------------------------------
  28. clean:
  29. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  30. debug:
  31. $(MAKE) DEBUG=true
  32. # ----------------------------------------------------------------------------------------------------------------------------
  33. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  34. -@mkdir -p $(MODULEDIR)
  35. @echo "Creating $(MODULENAME).a"
  36. @rm -f $@
  37. @$(AR) crs $@ $^
  38. # ----------------------------------------------------------------------------------------------------------------------------
  39. $(OBJDIR)/%.cpp.o: src/%.cpp
  40. -@mkdir -p $(OBJDIR)
  41. @echo "Compiling $<"
  42. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  43. $(OBJDIR)/Window.mm.o: src/Window.cpp
  44. -@mkdir -p $(OBJDIR)
  45. @echo "Compiling $<"
  46. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  47. -include $(OBJS:%.o=%.d)
  48. # ----------------------------------------------------------------------------------------------------------------------------