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.

Makefile 1.5KB

10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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) -w
  11. # ----------------------------------------------------------------------------------------------------------------------------
  12. OBJS = $(OBJDIR)/RtAudio.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. # ----------------------------------------------------------------------------------------------------------------------------