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

11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. ifeq ($(WIN32),true)
  10. BUILD_CXX_FLAGS += -I../../includes/asio
  11. endif
  12. # --------------------------------------------------------------
  13. ifeq ($(MACOS),true)
  14. OBJS = juce_audio_devices.mm.o
  15. OBJS_posix32 = juce_audio_devices.mm.posix32.o
  16. OBJS_posix64 = juce_audio_devices.mm.posix64.o
  17. else
  18. OBJS = juce_audio_devices.cpp.o
  19. OBJS_posix32 = juce_audio_devices.cpp.posix32.o
  20. OBJS_posix64 = juce_audio_devices.cpp.posix64.o
  21. endif
  22. OBJS_win32 = juce_audio_devices.cpp.win32.o
  23. OBJS_win64 = juce_audio_devices.cpp.win64.o
  24. # --------------------------------------------------------------
  25. all: ../juce_audio_devices.a
  26. posix32: ../juce_audio_devices.posix32.a
  27. posix64: ../juce_audio_devices.posix64.a
  28. win32: ../juce_audio_devices.win32.a
  29. win64: ../juce_audio_devices.win64.a
  30. # --------------------------------------------------------------
  31. clean:
  32. $(RM) *.o ../juce_audio_devices*.a
  33. debug:
  34. $(MAKE) DEBUG=true
  35. # --------------------------------------------------------------
  36. ../juce_audio_devices.a: $(OBJS)
  37. $(RM) $@
  38. $(AR) crs $@ $^
  39. ../juce_audio_devices.posix32.a: $(OBJS_posix32)
  40. $(RM) $@
  41. $(AR) crs $@ $^
  42. ../juce_audio_devices.posix64.a: $(OBJS_posix64)
  43. $(RM) $@
  44. $(AR) crs $@ $^
  45. ../juce_audio_devices.win32.a: $(OBJS_win32)
  46. $(RM) $@
  47. $(AR) crs $@ $^
  48. ../juce_audio_devices.win64.a: $(OBJS_win64)
  49. $(RM) $@
  50. $(AR) crs $@ $^
  51. # --------------------------------------------------------------
  52. CPP_DEPS = juce_audio_devices.cpp juce_audio_devices.h AppConfig.h */*.cpp */*.h
  53. juce_audio_devices.cpp.o: $(CPP_DEPS)
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. juce_audio_devices.cpp.%32.o: $(CPP_DEPS)
  56. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  57. juce_audio_devices.cpp.%64.o: $(CPP_DEPS)
  58. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  59. # --------------------------------------------------------------
  60. MM_DEPS = juce_audio_devices.mm juce_audio_devices.h AppConfig.h */*.mm */*.cpp */*.h
  61. juce_audio_devices.mm.o: $(MM_DEPS)
  62. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  63. juce_audio_devices.mm.%32.o: $(MM_DEPS)
  64. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ $(32BIT_FLAGS) -c -o $@
  65. juce_audio_devices.mm.%64.o: $(MM_DEPS)
  66. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ $(64BIT_FLAGS) -c -o $@
  67. # --------------------------------------------------------------