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

  1. #!/usr/bin/make -f
  2. # Makefile for juce_gui_basics #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(JUCE_GUI_BASICS_FLAGS) -I. -w
  9. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS) -L.. -ljuce_graphics -ljuce_data_structures -ljuce_events -ljuce_core
  10. ifeq ($(MACOS),true)
  11. BUILD_CXX_FLAGS += -ObjC++
  12. OBJS = juce_gui_basics.mm.o
  13. OBJS_posix32 = juce_gui_basics.mm.posix32.o
  14. OBJS_posix64 = juce_gui_basics.mm.posix64.o
  15. else
  16. OBJS = juce_gui_basics.cpp.o
  17. OBJS_posix32 = juce_gui_basics.cpp.posix32.o
  18. OBJS_posix64 = juce_gui_basics.cpp.posix64.o
  19. endif
  20. OBJS_win32 = juce_gui_basics.cpp.win32.o
  21. OBJS_win64 = juce_gui_basics.cpp.win64.o
  22. # --------------------------------------------------------------
  23. all: ../juce_gui_basics.a
  24. posix32: ../juce_gui_basics.posix32.a
  25. posix64: ../juce_gui_basics.posix64.a
  26. win32: ../juce_gui_basics.win32.a
  27. win64: ../juce_gui_basics.win64.a
  28. # --------------------------------------------------------------
  29. ../juce_gui_basics.a: $(OBJS)
  30. $(RM) $@
  31. $(AR) crs $@ $^
  32. ../juce_gui_basics.posix32.a: $(OBJS_posix32)
  33. $(RM) $@
  34. $(AR) crs $@ $^
  35. ../juce_gui_basics.posix64.a: $(OBJS_posix64)
  36. $(RM) $@
  37. $(AR) crs $@ $^
  38. ../juce_gui_basics.win32.a: $(OBJS_win32)
  39. $(RM) $@
  40. $(AR) crs $@ $^
  41. ../juce_gui_basics.win64.a: $(OBJS_win64)
  42. $(RM) $@
  43. $(AR) crs $@ $^
  44. ../libjuce_gui_basics.dll: $(OBJS)
  45. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  46. ../libjuce_gui_basics.dylib: $(OBJS)
  47. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  48. ../libjuce_gui_basics.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_gui_basics*.a ../libjuce_gui_basics.*
  66. debug:
  67. $(MAKE) DEBUG=true
  68. # --------------------------------------------------------------