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.

84 lines
1.7KB

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