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.

67 lines
2.2KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-interposer #
  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/interposer/Debug
  12. MODULEDIR := $(CWD)/../build/modules/Debug
  13. else
  14. OBJDIR := $(CWD)/../build/interposer/Release
  15. MODULEDIR := $(CWD)/../build/modules/Release
  16. endif
  17. # ----------------------------------------------------------------------------------------------------------------------
  18. BUILD_CXX_FLAGS += -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  19. LINK_FLAGS += -Wl,-rpath=$(shell realpath $(CWD)/../bin)
  20. LINK_FLAGS += -L$(BINDIR) -lcarla_standalone2 -lcarla_utils
  21. LINK_FLAGS += -lrestbed -lssl -lcrypto
  22. LINK_FLAGS += -pthread
  23. # ----------------------------------------------------------------------------------------------------------------------
  24. OBJS = $(OBJDIR)/rest-server.cpp.o $(OBJDIR)/buffers.cpp.o
  25. TARGETS = $(BINDIR)/carla-rest-server
  26. # ----------------------------------------------------------------------------------------------------------------------
  27. all: $(TARGETS)
  28. # ----------------------------------------------------------------------------------------------------------------------
  29. clean:
  30. rm -f $(OBJDIR)/*.o $(TARGETS)
  31. debug:
  32. $(MAKE) DEBUG=true
  33. # ----------------------------------------------------------------------------------------------------------------------
  34. $(BINDIR)/carla-rest-server: $(OBJS)
  35. -@mkdir -p $(BINDIR)
  36. @echo "Linking carla-rest-server"
  37. $(SILENT)$(CXX) $^ $(LINK_FLAGS) -o $@
  38. # ----------------------------------------------------------------------------------------------------------------------
  39. $(OBJDIR)/%.cpp.o: %.cpp
  40. -@mkdir -p $(OBJDIR)
  41. @echo "Compiling $<"
  42. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  43. # ----------------------------------------------------------------------------------------------------------------------
  44. -include $(OBJS:%.o=%.d)
  45. # ----------------------------------------------------------------------------------------------------------------------