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.

66 lines
2.0KB

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