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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_processors #
  3. # ---------------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_audio_processors
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_AUDIO_PROCESSORS_FLAGS) -I$(CWD)/includes/vst3sdk -I.. -std=gnu++14
  11. # needed by vst3
  12. ifeq ($(DEBUG),true)
  13. BUILD_CXX_FLAGS += -DDEVELOPMENT -D_DEBUG
  14. else
  15. BUILD_CXX_FLAGS += -DRELEASE
  16. endif
  17. # needed by vst3 on mingw
  18. # ifeq ($(WINDOWS),true)
  19. # BUILD_CXX_FLAGS += -D_NATIVE_WCHAR_T_DEFINED -D__wchar_t=wchar_t -fpermissive -Wno-unknown-pragmas
  20. # # needed for bloated juce
  21. # ifeq ($(DEBUG),true)
  22. # BUILD_CXX_FLAGS += -Wa,-mbig-obj
  23. # endif
  24. # endif
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. ifeq ($(MACOS),true)
  27. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  28. else
  29. OBJS = $(OBJDIR)/$(MODULENAME).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. $(SILENT)rm -f $@
  43. $(SILENT)$(AR) crs $@ $^
  44. # ---------------------------------------------------------------------------------------------------------------------
  45. $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  46. -@mkdir -p $(OBJDIR)
  47. @echo "Compiling $<"
  48. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  49. # ---------------------------------------------------------------------------------------------------------------------
  50. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
  51. -@mkdir -p $(OBJDIR)
  52. @echo "Compiling $<"
  53. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  54. # ---------------------------------------------------------------------------------------------------------------------
  55. -include $(OBJS:%.o=%.d)
  56. # ---------------------------------------------------------------------------------------------------------------------