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.

73 lines
2.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------------
  9. OBJS = \
  10. $(OBJDIR)/CachedPlugins.cpp.o \
  11. $(OBJDIR)/Information.cpp.o \
  12. $(OBJDIR)/PipeClient.cpp.o \
  13. $(OBJDIR)/System.cpp.o \
  14. $(OBJDIR)/Windows.cpp.o
  15. TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT)
  16. # ----------------------------------------------------------------------------------------------------------------------------
  17. LIBS = $(MODULEDIR)/lilv.a
  18. LIBS += $(MODULEDIR)/water.files.a
  19. LINK_FLAGS += $(LILV_LIBS)
  20. LINK_FLAGS += $(WATER_LIBS)
  21. ifeq ($(HAVE_X11),true)
  22. LINK_FLAGS += $(X11_LIBS)
  23. endif
  24. ifneq ($(HAIKU),true)
  25. LINK_FLAGS += -lpthread
  26. endif
  27. # ----------------------------------------------------------------------------------------------------------------------------
  28. all: $(TARGETS)
  29. # ----------------------------------------------------------------------------------------------------------------------------
  30. clean:
  31. rm -f $(OBJS) $(TARGETS)
  32. debug:
  33. $(MAKE) DEBUG=true
  34. # ----------------------------------------------------------------------------------------------------------------------------
  35. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
  36. -@mkdir -p $(BINDIR)
  37. @echo "Linking libcarla_utils$(LIB_EXT)"
  38. @$(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
  39. # ----------------------------------------------------------------------------------------------------------------------------
  40. ifeq ($(MACOS),true)
  41. $(OBJDIR)/Windows.cpp.o: Windows.cpp
  42. -@mkdir -p $(OBJDIR)
  43. @echo "Compiling $<"
  44. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  45. endif
  46. $(OBJDIR)/%.cpp.o: %.cpp
  47. -@mkdir -p $(OBJDIR)
  48. @echo "Compiling $<"
  49. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  50. -include $(OBJS:%.o=%.d)
  51. # ----------------------------------------------------------------------------------------------------------------------------