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 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/make -f
  2. # Makefile for juce_audio_basics #
  3. # ------------------------------ #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_audio_basics
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_AUDIO_BASICS_FLAGS) -I.. -std=gnu++14
  11. # needed for older mingw, crashes on optimized float operations
  12. ifeq ($(WINDOWS),true)
  13. ifneq (,$(findstring i686,$(TARGET_MACHINE)))
  14. BUILD_CXX_FLAGS += -mpreferred-stack-boundary=2
  15. else
  16. 32BIT_FLAGS += -mpreferred-stack-boundary=2
  17. endif
  18. endif
  19. # ---------------------------------------------------------------------------------------------------------------------
  20. ifeq ($(MACOS),true)
  21. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  22. else
  23. OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
  24. endif
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. all: $(MODULEDIR)/$(MODULENAME).a
  27. # ---------------------------------------------------------------------------------------------------------------------
  28. clean:
  29. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  30. debug:
  31. $(MAKE) DEBUG=true
  32. # ---------------------------------------------------------------------------------------------------------------------
  33. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  34. -@mkdir -p $(MODULEDIR)
  35. @echo "Creating $(MODULENAME).a"
  36. $(SILENT)rm -f $@
  37. $(SILENT)$(AR) crs $@ $^
  38. # ---------------------------------------------------------------------------------------------------------------------
  39. $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  40. -@mkdir -p $(OBJDIR)
  41. @echo "Compiling $<"
  42. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  43. # ---------------------------------------------------------------------------------------------------------------------
  44. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
  45. -@mkdir -p $(OBJDIR)
  46. @echo "Compiling $<"
  47. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  48. # ---------------------------------------------------------------------------------------------------------------------
  49. -include $(OBJS:%.o=%.d)
  50. # ---------------------------------------------------------------------------------------------------------------------