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.

97 lines
2.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for juce_core #
  3. # ---------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(JUCE_CORE_FLAGS) -I.
  9. LINK_FLAGS += $(JUCE_CORE_LIBS)
  10. ifeq ($(MACOS),true)
  11. BUILD_CXX_FLAGS += -objc++
  12. OBJS = juce_core.mm.o
  13. OBJS_posix32 = juce_core.mm.posix32.o
  14. OBJS_posix64 = juce_core.mm.posix64.o
  15. else
  16. OBJS = juce_core.cpp.o
  17. OBJS_posix32 = juce_core.cpp.posix32.o
  18. OBJS_posix64 = juce_core.cpp.posix64.o
  19. endif
  20. OBJS_win32 = juce_core.cpp.win32.o
  21. OBJS_win64 = juce_core.cpp.win64.o
  22. # --------------------------------------------------------------
  23. all: ../juce_core.a
  24. posix32: ../juce_core.posix32.a
  25. posix64: ../juce_core.posix64.a
  26. win32: ../juce_core.win32.a
  27. win64: ../juce_core.win64.a
  28. # --------------------------------------------------------------
  29. ../juce_core.a: $(OBJS)
  30. $(RM) $@
  31. $(AR) crs $@ $^
  32. ../juce_core.posix32.a: $(OBJS_posix32)
  33. $(RM) $@
  34. $(AR) crs $@ $^
  35. ../juce_core.posix64.a: $(OBJS_posix64)
  36. $(RM) $@
  37. $(AR) crs $@ $^
  38. ../juce_core.win32.a: $(OBJS_win32)
  39. $(RM) $@
  40. $(AR) crs $@ $^
  41. ../juce_core.win64.a: $(OBJS_win64)
  42. $(RM) $@
  43. $(AR) crs $@ $^
  44. ../libjuce_core.dll: $(OBJS)
  45. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  46. ../libjuce_core.dylib: $(OBJS)
  47. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  48. ../libjuce_core.so: $(OBJS)
  49. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  50. # --------------------------------------------------------------
  51. %.cpp.o: %.cpp
  52. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  53. %.mm.o: %.mm
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. %.posix32.o: %
  56. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  57. %.posix64.o: %
  58. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  59. %.win32.o: %
  60. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  61. %.win64.o: %
  62. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  63. # --------------------------------------------------------------
  64. clean:
  65. $(RM) *.o ../juce_core*.a ../libjuce_core.*
  66. debug:
  67. $(MAKE) DEBUG=true
  68. # --------------------------------------------------------------