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.

92 lines
2.3KB

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