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

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