Collection of tools useful for audio production
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.

72 lines
1.6KB

  1. #!/usr/bin/make -f
  2. # Makefile for static rtmempool #
  3. # ----------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. BUILD_C_FLAGS += -fvisibility=hidden -fPIC
  8. BUILD_C_FLAGS += -I. -I../carla-includes
  9. OBJS = rtmempool.o
  10. OBJS_posix32 = rtmempool_posix32.o
  11. OBJS_posix64 = rtmempool_posix64.o
  12. OBJS_win32 = rtmempool_win32.o
  13. OBJS_win64 = rtmempool_win64.o
  14. # --------------------------------------------------------------
  15. all: carla_rtmempool.a
  16. carla_rtmempool.a: $(OBJS)
  17. $(AR) rs $@ $^
  18. rtmempool.o: rtmempool.c
  19. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  20. # --------------------------------------------------------------
  21. posix32: carla_rtmempool_posix32.a
  22. carla_rtmempool_posix32.a: $(OBJS_posix32)
  23. $(AR) rs $@ $^
  24. rtmempool_posix32.o: rtmempool.c
  25. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  26. # --------------------------------------------------------------
  27. posix64: carla_rtmempool_posix64.a
  28. carla_rtmempool_posix64.a: $(OBJS_posix64)
  29. $(AR) rs $@ $^
  30. rtmempool_posix64.o: rtmempool.c
  31. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  32. # --------------------------------------------------------------
  33. win32: carla_rtmempool_win32.a
  34. carla_rtmempool_win32.a: $(OBJS_win32)
  35. $(AR) rs $@ $^
  36. rtmempool_win32.o: rtmempool.c
  37. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(32BIT_FLAGS) -c -o $@
  38. # --------------------------------------------------------------
  39. win64: carla_rtmempool_win64.a
  40. carla_rtmempool_win64.a: $(OBJS_win64)
  41. $(AR) rs $@ $^
  42. rtmempool_win64.o: rtmempool.c
  43. $(CC) $< $(BUILD_C_FLAGS) -DPTW32_STATIC_LIB $(64BIT_FLAGS) -c -o $@
  44. # --------------------------------------------------------------
  45. clean:
  46. rm -f *.a *.o