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.

55 lines
1.5KB

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