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

10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_processors #
  3. # ---------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(JUCE_AUDIO_PROCESSORS_FLAGS) -I. -I../../includes/ladspa -I../../includes/vst -I../../includes/vst3 -w
  9. ifeq ($(CARLA_VESTIGE_HEADER),true)
  10. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  11. else
  12. # needed by vst3
  13. BUILD_CXX_FLAGS += -D_NATIVE_WCHAR_T_DEFINED -D__wchar_t=wchar_t -fpermissive
  14. ifeq ($(DEBUG),true)
  15. BUILD_CXX_FLAGS += -DDEVELOPMENT -D_DEBUG
  16. else
  17. BUILD_CXX_FLAGS += -DRELEASE
  18. endif
  19. endif
  20. # --------------------------------------------------------------
  21. ifeq ($(MACOS),true)
  22. OBJS = juce_audio_processors.mm.o
  23. OBJS_posix32 = juce_audio_processors.mm.posix32.o
  24. OBJS_posix64 = juce_audio_processors.mm.posix64.o
  25. else
  26. OBJS = juce_audio_processors.cpp.o
  27. OBJS_posix32 = juce_audio_processors.cpp.posix32.o
  28. OBJS_posix64 = juce_audio_processors.cpp.posix64.o
  29. endif
  30. OBJS_win32 = juce_audio_processors.cpp.win32.o
  31. OBJS_win64 = juce_audio_processors.cpp.win64.o
  32. # --------------------------------------------------------------
  33. all: ../juce_audio_processors.a
  34. posix32: ../juce_audio_processors.posix32.a
  35. posix64: ../juce_audio_processors.posix64.a
  36. win32: ../juce_audio_processors.win32.a
  37. win64: ../juce_audio_processors.win64.a
  38. # --------------------------------------------------------------
  39. clean:
  40. $(RM) *.o ../juce_audio_processors*.a
  41. debug:
  42. $(MAKE) DEBUG=true
  43. # --------------------------------------------------------------
  44. ../juce_audio_processors.a: $(OBJS)
  45. $(RM) $@
  46. $(AR) crs $@ $^
  47. ../juce_audio_processors.posix32.a: $(OBJS_posix32)
  48. $(RM) $@
  49. $(AR) crs $@ $^
  50. ../juce_audio_processors.posix64.a: $(OBJS_posix64)
  51. $(RM) $@
  52. $(AR) crs $@ $^
  53. ../juce_audio_processors.win32.a: $(OBJS_win32)
  54. $(RM) $@
  55. $(AR) crs $@ $^
  56. ../juce_audio_processors.win64.a: $(OBJS_win64)
  57. $(RM) $@
  58. $(AR) crs $@ $^
  59. # --------------------------------------------------------------
  60. CPP_DEPS = juce_audio_processors.cpp juce_audio_processors.h AppConfig.h */*.cpp */*.h
  61. juce_audio_processors.cpp.o: $(CPP_DEPS)
  62. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  63. juce_audio_processors.cpp.%32.o: $(CPP_DEPS)
  64. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  65. juce_audio_processors.cpp.%64.o: $(CPP_DEPS)
  66. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  67. # --------------------------------------------------------------
  68. MM_DEPS = juce_audio_processors.cpp juce_audio_processors.h AppConfig.h */*.mm */*.cpp */*.h
  69. juce_audio_processors.mm.o: $(MM_DEPS)
  70. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  71. juce_audio_processors.mm.%32.o: $(MM_DEPS)
  72. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ $(32BIT_FLAGS) -c -o $@
  73. juce_audio_processors.mm.%64.o: $(MM_DEPS)
  74. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ $(64BIT_FLAGS) -c -o $@
  75. # --------------------------------------------------------------