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.

89 lines
2.1KB

  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 += -I.
  9. ifeq ($(MACOS),true)
  10. BUILD_CXX_FLAGS += -objc++
  11. OBJS = juce_audio_processors.mm.o
  12. OBJS_posix32 = juce_audio_processors.mm.posix32.o
  13. OBJS_posix64 = juce_audio_processors.mm.posix64.o
  14. else
  15. OBJS = juce_audio_processors.cpp.o
  16. OBJS_posix32 = juce_audio_processors.cpp.posix32.o
  17. OBJS_posix64 = juce_audio_processors.cpp.posix64.o
  18. endif
  19. OBJS_win32 = juce_audio_processors.cpp.win32.o
  20. OBJS_win64 = juce_audio_processors.cpp.win64.o
  21. # --------------------------------------------------------------
  22. all: ../juce_audio_processors.a
  23. posix32: ../juce_audio_processors.posix32.a
  24. posix64: ../juce_audio_processors.posix64.a
  25. win32: ../juce_audio_processors.win32.a
  26. win64: ../juce_audio_processors.win64.a
  27. # --------------------------------------------------------------
  28. ../juce_audio_processors.a: $(OBJS)
  29. $(AR) rs $@ $^
  30. ../juce_audio_processors.posix32.a: $(OBJS_posix32)
  31. $(AR) rs $@ $^
  32. ../juce_audio_processors.posix64.a: $(OBJS_posix64)
  33. $(AR) rs $@ $^
  34. ../juce_audio_processors.win32.a: $(OBJS_win32)
  35. $(AR) rs $@ $^
  36. ../juce_audio_processors.win64.a: $(OBJS_win64)
  37. $(AR) rs $@ $^
  38. ../juce_audio_processors.dll: $(OBJS)
  39. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  40. ../juce_audio_processors.dylib: $(OBJS)
  41. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  42. ../juce_audio_processors.so: $(OBJS)
  43. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  44. # --------------------------------------------------------------
  45. %.cpp.o: %.cpp
  46. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  47. %.mm.o: %.mm
  48. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  49. %.posix32.o: %
  50. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  51. %.posix64.o: %
  52. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  53. %.win32.o: %
  54. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  55. %.win64.o: %
  56. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  57. # --------------------------------------------------------------
  58. clean:
  59. rm -f *.o ../juce_audio_processors*.a
  60. debug:
  61. $(MAKE) DEBUG=true