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

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