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.

64 lines
2.1KB

  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 += -L$(BINDIR) -lcarla_standalone2 -lcarla_utils -lrestbed -lpthread -Wl,-rpath=$(shell realpath $(CWD)/../bin)
  20. # ----------------------------------------------------------------------------------------------------------------------
  21. OBJS = $(OBJDIR)/rest-server.cpp.o $(OBJDIR)/buffers.cpp.o
  22. TARGETS = $(BINDIR)/carla-rest-server
  23. # ----------------------------------------------------------------------------------------------------------------------
  24. all: $(TARGETS)
  25. # ----------------------------------------------------------------------------------------------------------------------
  26. clean:
  27. rm -f $(OBJDIR)/*.o $(TARGETS)
  28. debug:
  29. $(MAKE) DEBUG=true
  30. # ----------------------------------------------------------------------------------------------------------------------
  31. $(BINDIR)/carla-rest-server: $(OBJS)
  32. -@mkdir -p $(BINDIR)
  33. @echo "Linking carla-rest-server"
  34. @$(CXX) $^ $(LINK_FLAGS) -o $@
  35. # ----------------------------------------------------------------------------------------------------------------------
  36. $(OBJDIR)/%.cpp.o: %.cpp
  37. -@mkdir -p $(OBJDIR)
  38. @echo "Compiling $<"
  39. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  40. # ----------------------------------------------------------------------------------------------------------------------
  41. -include $(OBJS:%.o=%.d)
  42. # ----------------------------------------------------------------------------------------------------------------------