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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 += -I.
  9. ifeq ($(MACOS),true)
  10. BUILD_CXX_FLAGS += -objc++
  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. ../juce_audio_basics.a: $(OBJS)
  29. $(AR) rs $@ $^
  30. ../juce_audio_basics.posix32.a: $(OBJS_posix32)
  31. $(AR) rs $@ $^
  32. ../juce_audio_basics.posix64.a: $(OBJS_posix64)
  33. $(AR) rs $@ $^
  34. ../juce_audio_basics.win32.a: $(OBJS_win32)
  35. $(AR) rs $@ $^
  36. ../juce_audio_basics.win64.a: $(OBJS_win64)
  37. $(AR) rs $@ $^
  38. ../juce_audio_basics.dll: $(OBJS)
  39. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  40. ../juce_audio_basics.dylib: $(OBJS)
  41. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  42. ../juce_audio_basics.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_basics*.a
  60. debug:
  61. $(MAKE) DEBUG=true