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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/usr/bin/make -f
  2. # Makefile for juce_gui_extra #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=juce_gui_extra
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(JUCE_GUI_EXTRA_FLAGS) -I.. -std=gnu++14
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. ifeq ($(MACOS),true)
  13. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  14. else
  15. OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
  16. endif
  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)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  32. -@mkdir -p $(OBJDIR)
  33. @echo "Compiling $<"
  34. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  35. # ---------------------------------------------------------------------------------------------------------------------
  36. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
  37. -@mkdir -p $(OBJDIR)
  38. @echo "Compiling $<"
  39. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  40. # ---------------------------------------------------------------------------------------------------------------------
  41. -include $(OBJS:%.o=%.d)
  42. # ---------------------------------------------------------------------------------------------------------------------