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

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
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #!/usr/bin/make -f
  2. # Makefile for rtmempool #
  3. # ---------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += $(RTMEMPOOL_FLAGS) -I. -I../../includes
  9. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  10. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  11. BUILD_C_FLAGS += -DWANT_LV2
  12. endif
  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. $(RM) $@
  27. $(AR) crs $@ $^
  28. ../rtmempool.posix32.a: $(OBJS_posix32)
  29. $(RM) $@
  30. $(AR) crs $@ $^
  31. ../rtmempool.posix64.a: $(OBJS_posix64)
  32. $(RM) $@
  33. $(AR) crs $@ $^
  34. ../rtmempool.win32.a: $(OBJS_win32)
  35. $(RM) $@
  36. $(AR) crs $@ $^
  37. ../rtmempool.win64.a: $(OBJS_win64)
  38. $(RM) $@
  39. $(AR) crs $@ $^
  40. ../librtmempool.dll: $(OBJS)
  41. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  42. ../librtmempool.dylib: $(OBJS)
  43. $(CC) $^ -dynamiclib $(LINK_FLAGS) -o $@
  44. ../librtmempool.so: $(OBJS)
  45. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  46. # --------------------------------------------------------------
  47. %.c.o: %.c
  48. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  49. %.c.posix32.o: %.c
  50. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  51. %.c.posix64.o: %.c
  52. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  53. %.c.win32.o: %.c
  54. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  55. %.c.win64.o: %.c
  56. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  57. # --------------------------------------------------------------
  58. clean:
  59. $(RM) *.o ../rtmempool*.a ../librtmempool.*
  60. debug:
  61. $(MAKE) DEBUG=true
  62. # --------------------------------------------------------------