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.

79 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
  9. BUILD_C_FLAGS += -I. -I../../includes
  10. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  11. BUILD_C_FLAGS += -DWANT_LV2
  12. endif
  13. OBJS = rtmempool.o
  14. OBJS_posix32 = rtmempool_posix32.o
  15. OBJS_posix64 = rtmempool_posix64.o
  16. OBJS_win32 = rtmempool_win32.o
  17. OBJS_win64 = rtmempool_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. # --------------------------------------------------------------
  36. rtmempool.o: rtmempool.c
  37. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  38. # --------------------------------------------------------------
  39. rtmempool_posix32.o: rtmempool.c
  40. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  41. # --------------------------------------------------------------
  42. rtmempool_posix64.o: rtmempool.c
  43. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  44. # --------------------------------------------------------------
  45. rtmempool_win32.o: rtmempool.c
  46. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(32BIT_FLAGS) -c -o $@
  47. # --------------------------------------------------------------
  48. rtmempool_win64.o: rtmempool.c
  49. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(64BIT_FLAGS) -c -o $@
  50. # --------------------------------------------------------------
  51. clean:
  52. rm -f *.o