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.

49 lines
1.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for rtmidi #
  3. # ------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=rtmidi
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(RTMIDI_FLAGS) -w
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. OBJS = $(OBJDIR)/RtMidi.cpp.o
  13. # ---------------------------------------------------------------------------------------------------------------------
  14. all: $(MODULEDIR)/$(MODULENAME).a
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. clean:
  17. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  18. debug:
  19. $(MAKE) DEBUG=true
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  22. -@mkdir -p $(MODULEDIR)
  23. @echo "Creating $(MODULENAME).a"
  24. @rm -f $@
  25. @$(AR) crs $@ $^
  26. # ---------------------------------------------------------------------------------------------------------------------
  27. $(OBJDIR)/%.cpp.o: %.cpp
  28. -@mkdir -p $(OBJDIR)
  29. @echo "Compiling $<"
  30. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  31. -include $(OBJS:%.o=%.d)
  32. # ---------------------------------------------------------------------------------------------------------------------