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 3.0KB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_posix32 = $(OBJDIR)/$(MODULENAME).c.posix32.o
  14. OBJS_posix64 = $(OBJDIR)/$(MODULENAME).c.posix64.o
  15. OBJS_win32 = $(OBJDIR)/$(MODULENAME).c.win32.o
  16. OBJS_win64 = $(OBJDIR)/$(MODULENAME).c.win64.o
  17. # ----------------------------------------------------------------------------------------------------------------------------
  18. all: $(MODULEDIR)/$(MODULENAME).a
  19. posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
  20. posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
  21. win32: $(MODULEDIR)/$(MODULENAME).win32.a
  22. win64: $(MODULEDIR)/$(MODULENAME).win64.a
  23. # ----------------------------------------------------------------------------------------------------------------------------
  24. clean:
  25. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  26. debug:
  27. $(MAKE) DEBUG=true
  28. # ----------------------------------------------------------------------------------------------------------------------------
  29. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  30. -@mkdir -p $(MODULEDIR)
  31. @echo "Creating $(MODULENAME).a"
  32. @rm -f $@
  33. @$(AR) crs $@ $^
  34. $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
  35. -@mkdir -p $(MODULEDIR)
  36. @echo "Creating $(MODULENAME).posix32.a"
  37. @rm -f $@
  38. @$(AR) crs $@ $^
  39. $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
  40. -@mkdir -p $(MODULEDIR)
  41. @echo "Creating $(MODULENAME).posix64.a"
  42. @rm -f $@
  43. @$(AR) crs $@ $^
  44. $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
  45. -@mkdir -p $(MODULEDIR)
  46. @echo "Creating $(MODULENAME).win32.a"
  47. @rm -f $@
  48. @$(AR) crs $@ $^
  49. $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
  50. -@mkdir -p $(MODULEDIR)
  51. @echo "Creating $(MODULENAME).win64.a"
  52. @rm -f $@
  53. @$(AR) crs $@ $^
  54. # ----------------------------------------------------------------------------------------------------------------------------
  55. $(OBJDIR)/$(MODULENAME).c.o: $(MODULENAME).c
  56. -@mkdir -p $(OBJDIR)
  57. @echo "Compiling $<"
  58. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  59. $(OBJDIR)/$(MODULENAME).c.%32.o: $(MODULENAME).c
  60. -@mkdir -p $(OBJDIR)
  61. @echo "Compiling $< (32bit)"
  62. @$(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  63. $(OBJDIR)/$(MODULENAME).c.%64.o: $(MODULENAME).c
  64. -@mkdir -p $(OBJDIR)
  65. @echo "Compiling $< (64bit)"
  66. @$(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  67. # ----------------------------------------------------------------------------------------------------------------------------
  68. -include $(OBJS:%.o=%.d)
  69. -include $(OBJS_posix32:%.o=%.d)
  70. -include $(OBJS_posix64:%.o=%.d)
  71. -include $(OBJS_win32:%.o=%.d)
  72. -include $(OBJS_win64:%.o=%.d)
  73. # ----------------------------------------------------------------------------------------------------------------------------