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

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_devices #
  3. # ------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(JUCE_AUDIO_DEVICES_FLAGS) -I. -w
  9. LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS) -L.. -ljuce_events -ljuce_audio_formats -ljuce_audio_basics -ljuce_core
  10. ifeq ($(WIN32),true)
  11. BUILD_CXX_FLAGS += -I../../includes/asio
  12. endif
  13. ifeq ($(MACOS),true)
  14. BUILD_CXX_FLAGS += -ObjC++
  15. OBJS = juce_audio_devices.mm.o
  16. OBJS_posix32 = juce_audio_devices.mm.posix32.o
  17. OBJS_posix64 = juce_audio_devices.mm.posix64.o
  18. else
  19. OBJS = juce_audio_devices.cpp.o
  20. OBJS_posix32 = juce_audio_devices.cpp.posix32.o
  21. OBJS_posix64 = juce_audio_devices.cpp.posix64.o
  22. endif
  23. OBJS_win32 = juce_audio_devices.cpp.win32.o
  24. OBJS_win64 = juce_audio_devices.cpp.win64.o
  25. # --------------------------------------------------------------
  26. all: ../juce_audio_devices.a
  27. posix32: ../juce_audio_devices.posix32.a
  28. posix64: ../juce_audio_devices.posix64.a
  29. win32: ../juce_audio_devices.win32.a
  30. win64: ../juce_audio_devices.win64.a
  31. # --------------------------------------------------------------
  32. ../juce_audio_devices.a: $(OBJS)
  33. $(RM) $@
  34. $(AR) crs $@ $^
  35. ../juce_audio_devices.posix32.a: $(OBJS_posix32)
  36. $(RM) $@
  37. $(AR) crs $@ $^
  38. ../juce_audio_devices.posix64.a: $(OBJS_posix64)
  39. $(RM) $@
  40. $(AR) crs $@ $^
  41. ../juce_audio_devices.win32.a: $(OBJS_win32)
  42. $(RM) $@
  43. $(AR) crs $@ $^
  44. ../juce_audio_devices.win64.a: $(OBJS_win64)
  45. $(RM) $@
  46. $(AR) crs $@ $^
  47. ../libjuce_audio_devices.dll: $(OBJS)
  48. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  49. ../libjuce_audio_devices.dylib: $(OBJS)
  50. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  51. ../libjuce_audio_devices.so: $(OBJS)
  52. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  53. # --------------------------------------------------------------
  54. %.cpp.o: %.cpp
  55. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  56. %.mm.o: %.mm
  57. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  58. %.posix32.o: %
  59. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  60. %.posix64.o: %
  61. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  62. %.win32.o: %
  63. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  64. %.win64.o: %
  65. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  66. # --------------------------------------------------------------
  67. clean:
  68. $(RM) *.o ../juce_audio_devices*.a ../libjuce_audio_devices.*
  69. debug:
  70. $(MAKE) DEBUG=true
  71. # --------------------------------------------------------------