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.

69 lines
2.0KB

  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)/includes -I$(CWD)/modules -I$(CWD)/utils
  19. # ----------------------------------------------------------------------------------------------------------------------------
  20. OBJS = $(OBJDIR)/interposer.cpp.o
  21. ifeq ($(LINUX),true)
  22. TARGETS = $(BINDIR)/libcarla_interposer$(LIB_EXT)
  23. else
  24. TARGETS =
  25. endif
  26. ifeq ($(UNIX),true)
  27. LINK_FLAGS += -ldl
  28. endif
  29. # ----------------------------------------------------------------------------------------------------------------------------
  30. all: $(TARGETS)
  31. # ----------------------------------------------------------------------------------------------------------------------------
  32. clean:
  33. rm -f $(OBJDIR)/*.o $(TARGETS)
  34. debug:
  35. $(MAKE) DEBUG=true
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. $(BINDIR)/libcarla_interposer$(LIB_EXT): $(OBJS)
  38. -@mkdir -p $(BINDIR)
  39. @echo "Linking libcarla_interposer$(LIB_EXT)"
  40. @$(CXX) $< $(SHARED) $(LINK_FLAGS) -o $@
  41. # ----------------------------------------------------------------------------------------------------------------------------
  42. $(OBJDIR)/%.cpp.o: %.cpp
  43. -@mkdir -p $(OBJDIR)
  44. @echo "Compiling $<"
  45. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  46. -include $(OBJS:%.o=%.d)
  47. # ----------------------------------------------------------------------------------------------------------------------------