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.

121 lines
3.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_formats #
  3. # ------------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_audio_formats
  8. include ../Makefile.mk
  9. # ----------------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_AUDIO_FORMATS_FLAGS) -I..
  11. BUILD_CXX_FLAGS += -DHAVE_LROUND
  12. # ----------------------------------------------------------------------------------------------------------------------------
  13. ifeq ($(MACOS),true)
  14. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  15. OBJS_posix32 = $(OBJDIR)/$(MODULENAME).mm.posix32.o
  16. OBJS_posix64 = $(OBJDIR)/$(MODULENAME).mm.posix64.o
  17. else
  18. OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
  19. OBJS_posix32 = $(OBJDIR)/$(MODULENAME).cpp.posix32.o
  20. OBJS_posix64 = $(OBJDIR)/$(MODULENAME).cpp.posix64.o
  21. endif
  22. OBJS_win32 = $(OBJDIR)/$(MODULENAME).cpp.win32.o
  23. OBJS_win64 = $(OBJDIR)/$(MODULENAME).cpp.win64.o
  24. # ----------------------------------------------------------------------------------------------------------------------------
  25. all: $(MODULEDIR)/$(MODULENAME).a
  26. posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
  27. posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
  28. win32: $(MODULEDIR)/$(MODULENAME).win32.a
  29. win64: $(MODULEDIR)/$(MODULENAME).win64.a
  30. # ----------------------------------------------------------------------------------------------------------------------------
  31. clean:
  32. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  33. debug:
  34. $(MAKE) DEBUG=true
  35. # ----------------------------------------------------------------------------------------------------------------------------
  36. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  37. -@mkdir -p $(MODULEDIR)
  38. @echo "Creating $(MODULENAME).a"
  39. @rm -f $@
  40. @$(AR) crs $@ $^
  41. $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
  42. -@mkdir -p $(MODULEDIR)
  43. @echo "Creating $(MODULENAME).posix32.a"
  44. @rm -f $@
  45. @$(AR) crs $@ $^
  46. $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
  47. -@mkdir -p $(MODULEDIR)
  48. @echo "Creating $(MODULENAME).posix64.a"
  49. @rm -f $@
  50. @$(AR) crs $@ $^
  51. $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
  52. -@mkdir -p $(MODULEDIR)
  53. @echo "Creating $(MODULENAME).win32.a"
  54. @rm -f $@
  55. @$(AR) crs $@ $^
  56. $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
  57. -@mkdir -p $(MODULEDIR)
  58. @echo "Creating $(MODULENAME).win64.a"
  59. @rm -f $@
  60. @$(AR) crs $@ $^
  61. # ----------------------------------------------------------------------------------------------------------------------------
  62. $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  63. -@mkdir -p $(OBJDIR)
  64. @echo "Compiling $<"
  65. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  66. $(OBJDIR)/$(MODULENAME).cpp.%32.o: $(MODULENAME).cpp
  67. -@mkdir -p $(OBJDIR)
  68. @echo "Compiling $< (32bit)"
  69. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  70. $(OBJDIR)/$(MODULENAME).cpp.%64.o: $(MODULENAME).cpp
  71. -@mkdir -p $(OBJDIR)
  72. @echo "Compiling $< (64bit)"
  73. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  74. # ----------------------------------------------------------------------------------------------------------------------------
  75. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
  76. -@mkdir -p $(OBJDIR)
  77. @echo "Compiling $<"
  78. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  79. $(OBJDIR)/$(MODULENAME).mm.%32.o: $(MODULENAME).cpp
  80. -@mkdir -p $(OBJDIR)
  81. @echo "Compiling $< (32bit)"
  82. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  83. $(OBJDIR)/$(MODULENAME).mm.%64.o: $(MODULENAME).cpp
  84. -@mkdir -p $(OBJDIR)
  85. @echo "Compiling $< (64bit)"
  86. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  87. # ----------------------------------------------------------------------------------------------------------------------------
  88. -include $(OBJS:%.o=%.d)
  89. -include $(OBJS_posix32:%.o=%.d)
  90. -include $(OBJS_posix64:%.o=%.d)
  91. -include $(OBJS_win32:%.o=%.d)
  92. -include $(OBJS_win64:%.o=%.d)
  93. # ----------------------------------------------------------------------------------------------------------------------------