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.

71 lines
2.2KB

  1. #!/usr/bin/make -f
  2. # Makefile for juce_gui_basics #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_gui_basics
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_GUI_BASICS_FLAGS) -I.. -std=gnu++14
  11. # needed for mingw juce
  12. # ifeq ($(WINDOWS),true)
  13. # BUILD_CXX_FLAGS += -Wno-missing-field-initializers -Wno-multichar
  14. # # needed for bloated juce
  15. # ifeq ($(DEBUG),true)
  16. # BUILD_CXX_FLAGS += -Wa,-mbig-obj
  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. # ---------------------------------------------------------------------------------------------------------------------