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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #!/usr/bin/make -f
  2. # Makefile for libjack #
  3. # -------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------
  9. BINDIR := $(CWD)/../bin
  10. ifeq ($(DEBUG),true)
  11. OBJDIR := $(CWD)/../build/libjack/Debug
  12. MODULEDIR := $(CWD)/../build/modules/Debug
  13. else
  14. OBJDIR := $(CWD)/../build/libjack/Release
  15. MODULEDIR := $(CWD)/../build/modules/Release
  16. endif
  17. # ----------------------------------------------------------------------------------------------------------------------
  18. BUILD_C_FLAGS += -I$(CWD) -I$(CWD)/includes
  19. BUILD_CXX_FLAGS += -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/utils
  20. LINK_FLAGS += -lpthread -lrt
  21. # ----------------------------------------------------------------------------------------------------------------------
  22. ifeq ($(LINUX),true)
  23. OBJS = \
  24. $(OBJDIR)/libjack.cpp.o \
  25. $(OBJDIR)/libjack_base.cpp.o \
  26. $(OBJDIR)/libjack_callbacks.cpp.o \
  27. $(OBJDIR)/libjack_client.cpp.o \
  28. $(OBJDIR)/libjack_error.cpp.o \
  29. $(OBJDIR)/libjack_latency.cpp.o \
  30. $(OBJDIR)/libjack_non-callback.cpp.o \
  31. $(OBJDIR)/libjack_metadata.cpp.o \
  32. $(OBJDIR)/libjack_midi.cpp.o \
  33. $(OBJDIR)/libjack_ports.cpp.o \
  34. $(OBJDIR)/libjack_port-searching.cpp.o \
  35. $(OBJDIR)/libjack_server-control.cpp.o \
  36. $(OBJDIR)/libjack_stats.cpp.o \
  37. $(OBJDIR)/libjack_time.cpp.o \
  38. $(OBJDIR)/libjack_transport.cpp.o \
  39. $(OBJDIR)/ringbuffer.c.o
  40. TARGET = $(BINDIR)/jack/libjack.so.0
  41. else
  42. OBJS =
  43. TARGET =
  44. endif
  45. # ----------------------------------------------------------------------------------------------------------------------
  46. all: $(TARGET)
  47. # ----------------------------------------------------------------------------------------------------------------------
  48. clean:
  49. rm -f $(OBJDIR)/*.o $(TARGET)
  50. debug:
  51. $(MAKE) DEBUG=true
  52. # ----------------------------------------------------------------------------------------------------------------------
  53. $(TARGET): $(OBJS)
  54. -@mkdir -p $(BINDIR)/jack
  55. @echo "Linking libjack.so.0"
  56. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) $(LIBJACK_LIBS) -o $@
  57. # ----------------------------------------------------------------------------------------------------------------------
  58. $(OBJDIR)/%.c.o: %.c
  59. -@mkdir -p $(OBJDIR)
  60. @echo "Compiling $<"
  61. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  62. $(OBJDIR)/%.cpp.o: %.cpp
  63. -@mkdir -p $(OBJDIR)
  64. @echo "Compiling $<"
  65. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  66. # ----------------------------------------------------------------------------------------------------------------------
  67. -include $(OBJS:%.o=%.d)
  68. # ----------------------------------------------------------------------------------------------------------------------