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.

85 lines
1.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for rtmempool #
  3. # ---------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += -fvisibility=hidden -fPIC -pthread
  9. BUILD_C_FLAGS += -I. -I../../includes
  10. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  11. BUILD_C_FLAGS += -DWANT_LV2
  12. endif
  13. LINK_FLAGS += -lpthread
  14. OBJS = rtmempool.c.o
  15. OBJS_posix32 = rtmempool.c.posix32.o
  16. OBJS_posix64 = rtmempool.c.posix64.o
  17. OBJS_win32 = rtmempool.c.win32.o
  18. OBJS_win64 = rtmempool.c.win64.o
  19. # --------------------------------------------------------------
  20. all: ../rtmempool.a
  21. posix32: ../rtmempool.posix32.a
  22. posix64: ../rtmempool.posix64.a
  23. win32: ../rtmempool.win32.a
  24. win64: ../rtmempool.win64.a
  25. # --------------------------------------------------------------
  26. ../rtmempool.a: $(OBJS)
  27. $(AR) rs $@ $^
  28. ../rtmempool.posix32.a: $(OBJS_posix32)
  29. $(AR) rs $@ $^
  30. ../rtmempool.posix64.a: $(OBJS_posix64)
  31. $(AR) rs $@ $^
  32. ../rtmempool.win32.a: $(OBJS_win32)
  33. $(AR) rs $@ $^
  34. ../rtmempool.win64.a: $(OBJS_win64)
  35. $(AR) rs $@ $^
  36. ../rtmempool.dll: $(OBJS)
  37. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  38. ../rtmempool.dylib: $(OBJS)
  39. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  40. ../rtmempool.so: $(OBJS)
  41. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  42. # --------------------------------------------------------------
  43. rtmempool.c.o: rtmempool.c
  44. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  45. rtmempool.c.posix32.o: rtmempool.c
  46. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  47. rtmempool.c.posix64.o: rtmempool.c
  48. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  49. rtmempool.c.win32.o: rtmempool.c
  50. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(32BIT_FLAGS) -c -o $@
  51. rtmempool.c.win64.o: rtmempool.c
  52. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(64BIT_FLAGS) -c -o $@
  53. # --------------------------------------------------------------
  54. clean:
  55. rm -f *.o ../rtmempool.*
  56. debug:
  57. $(MAKE) DEBUG=true