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.

93 lines
2.8KB

  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)/modules -I$(CWD)/utils
  20. LINK_FLAGS += $(MODULEDIR)/juce_core.a
  21. LINK_FLAGS += $(MODULEDIR)/juce_audio_basics.a
  22. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  23. LINK_FLAGS += $(JUCE_CORE_LIBS)
  24. # ----------------------------------------------------------------------------------------------------------------------
  25. OBJS =
  26. TARGETS =
  27. ifeq ($(LINUX),true)
  28. OBJS = \
  29. $(OBJDIR)/libjack.cpp.o \
  30. $(OBJDIR)/libjack_base.cpp.o \
  31. $(OBJDIR)/libjack_callbacks.cpp.o \
  32. $(OBJDIR)/libjack_client.cpp.o \
  33. $(OBJDIR)/libjack_error.cpp.o \
  34. $(OBJDIR)/libjack_latency.cpp.o \
  35. $(OBJDIR)/libjack_non-callback.cpp.o \
  36. $(OBJDIR)/libjack_metadata.cpp.o \
  37. $(OBJDIR)/libjack_midi.cpp.o \
  38. $(OBJDIR)/libjack_ports.cpp.o \
  39. $(OBJDIR)/libjack_port-searching.cpp.o \
  40. $(OBJDIR)/libjack_server-control.cpp.o \
  41. $(OBJDIR)/libjack_stats.cpp.o \
  42. $(OBJDIR)/libjack_time.cpp.o \
  43. $(OBJDIR)/libjack_transport.cpp.o \
  44. $(OBJDIR)/ringbuffer.c.o
  45. TARGET = $(BINDIR)/jack/libjack.so.0
  46. endif
  47. # ----------------------------------------------------------------------------------------------------------------------
  48. all: $(TARGET)
  49. # ----------------------------------------------------------------------------------------------------------------------
  50. clean:
  51. rm -f $(OBJDIR)/*.o $(TARGETS)
  52. debug:
  53. $(MAKE) DEBUG=true
  54. # ----------------------------------------------------------------------------------------------------------------------
  55. $(TARGET): $(OBJS)
  56. -@mkdir -p $(BINDIR)/jack
  57. @echo "Linking libjack.so.0"
  58. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) $(LIBJACK_LIBS) -o $@
  59. # ----------------------------------------------------------------------------------------------------------------------
  60. $(OBJDIR)/%.c.o: %.c
  61. -@mkdir -p $(OBJDIR)
  62. @echo "Compiling $<"
  63. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  64. $(OBJDIR)/%.cpp.o: %.cpp
  65. -@mkdir -p $(OBJDIR)
  66. @echo "Compiling $<"
  67. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  68. # ----------------------------------------------------------------------------------------------------------------------
  69. -include $(OBJS:%.o=%.d)
  70. # ----------------------------------------------------------------------------------------------------------------------