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.

68 lines
2.1KB

  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_devices #
  3. # ------------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_audio_devices
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_AUDIO_DEVICES_FLAGS) -I.. -std=gnu++14
  11. ifeq ($(WINDOWS),true)
  12. # BUILD_CXX_FLAGS += -Wno-missing-field-initializers
  13. # BUILD_CXX_FLAGS += -I$(CWD)/includes/asio
  14. BUILD_CXX_FLAGS += -I$(CWD)/modules/rtaudio/include
  15. endif
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. ifeq ($(MACOS),true)
  18. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  19. else
  20. OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
  21. endif
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. all: $(MODULEDIR)/$(MODULENAME).a
  24. # ---------------------------------------------------------------------------------------------------------------------
  25. clean:
  26. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  27. debug:
  28. $(MAKE) DEBUG=true
  29. # ---------------------------------------------------------------------------------------------------------------------
  30. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  31. -@mkdir -p $(MODULEDIR)
  32. @echo "Creating $(MODULENAME).a"
  33. $(SILENT)rm -f $@
  34. $(SILENT)$(AR) crs $@ $^
  35. # ---------------------------------------------------------------------------------------------------------------------
  36. $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  37. -@mkdir -p $(OBJDIR)
  38. @echo "Compiling $<"
  39. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  40. # ---------------------------------------------------------------------------------------------------------------------
  41. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
  42. -@mkdir -p $(OBJDIR)
  43. @echo "Compiling $<"
  44. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  45. # ---------------------------------------------------------------------------------------------------------------------
  46. -include $(OBJS:%.o=%.d)
  47. # ---------------------------------------------------------------------------------------------------------------------