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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. endif
  44. # ----------------------------------------------------------------------------------------------------------------------
  45. all: $(TARGET)
  46. # ----------------------------------------------------------------------------------------------------------------------
  47. clean:
  48. rm -f $(OBJDIR)/*.o $(TARGET)
  49. debug:
  50. $(MAKE) DEBUG=true
  51. # ----------------------------------------------------------------------------------------------------------------------
  52. $(TARGET): $(OBJS)
  53. -@mkdir -p $(BINDIR)/jack
  54. @echo "Linking libjack.so.0"
  55. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) $(LIBJACK_LIBS) -o $@
  56. # ----------------------------------------------------------------------------------------------------------------------
  57. $(OBJDIR)/%.c.o: %.c
  58. -@mkdir -p $(OBJDIR)
  59. @echo "Compiling $<"
  60. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  61. $(OBJDIR)/%.cpp.o: %.cpp
  62. -@mkdir -p $(OBJDIR)
  63. @echo "Compiling $<"
  64. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  65. # ----------------------------------------------------------------------------------------------------------------------
  66. -include $(OBJS:%.o=%.d)
  67. # ----------------------------------------------------------------------------------------------------------------------