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.

111 lines
3.5KB

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