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.

92 lines
2.4KB

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