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.

58 lines
1.8KB

  1. #!/usr/bin/make -f
  2. # Makefile for jsusfx #
  3. # ------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=jsusfx
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JSUSFX_FLAGS)
  11. BUILD_CXX_FLAGS += -Wno-unused-parameter
  12. BUILD_CXX_FLAGS += -Wno-unused-function
  13. BUILD_CXX_FLAGS += -Wno-ignored-attributes
  14. BUILD_CXX_FLAGS += -Wno-sign-compare
  15. BUILD_CXX_FLAGS += -Wno-maybe-uninitialized
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. OBJS = $(OBJDIR)/source/jsusfx.cpp.o
  18. OBJS += $(OBJDIR)/source/jsusfx_file.cpp.o
  19. OBJS += $(OBJDIR)/source/jsusfx_gfx.cpp.o
  20. OBJS += $(OBJDIR)/source/jsusfx_serialize.cpp.o
  21. OBJS += $(OBJDIR)/source/riff.cpp.o
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. all: $(MODULEDIR)/$(MODULENAME).a
  24. # ---------------------------------------------------------------------------------------------------------------------
  25. clean:
  26. rm -f $(OBJDIR)/source/*.o $(MODULEDIR)/$(MODULENAME)*.a
  27. debug:
  28. $(MAKE) DEBUG=true
  29. # ---------------------------------------------------------------------------------------------------------------------
  30. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  31. -@mkdir -p $(MODULEDIR)
  32. @echo "Creating $(MODULENAME).a"
  33. @rm -f $@
  34. @$(AR) crs $@ $^
  35. # ---------------------------------------------------------------------------------------------------------------------
  36. $(OBJDIR)/%.cpp.o: %.cpp
  37. -@mkdir -p $(dir $@)
  38. @echo "Compiling $<"
  39. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  40. -include $(OBJS:%.o=%.d)
  41. # ---------------------------------------------------------------------------------------------------------------------