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.

53 lines
1.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for rtaudio #
  3. # -------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=rtaudio
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(RTAUDIO_FLAGS) -I$(CWD) -Iinclude
  11. ifeq ($(WIN32),true)
  12. BUILD_CXX_FLAGS += -Wno-unused-function -Wno-unused-but-set-variable
  13. endif
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. OBJS = $(OBJDIR)/RtAudio.cpp.o
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. all: $(MODULEDIR)/$(MODULENAME).a
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. clean:
  20. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  21. debug:
  22. $(MAKE) DEBUG=true
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  25. -@mkdir -p $(MODULEDIR)
  26. @echo "Creating $(MODULENAME).a"
  27. @rm -f $@
  28. @$(AR) crs $@ $^
  29. # ---------------------------------------------------------------------------------------------------------------------
  30. $(OBJDIR)/%.cpp.o: %.cpp
  31. -@mkdir -p $(OBJDIR)
  32. @echo "Compiling $<"
  33. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  34. -include $(OBJS:%.o=%.d)
  35. # ---------------------------------------------------------------------------------------------------------------------