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

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS) -L.. -ljuce_events -ljuce_core
  10. ifeq ($(MACOS),true)
  11. BUILD_CXX_FLAGS += -ObjC++
  12. OBJS = juce_graphics.mm.o
  13. OBJS_posix32 = juce_graphics.mm.posix32.o
  14. OBJS_posix64 = juce_graphics.mm.posix64.o
  15. else
  16. OBJS = juce_graphics.cpp.o
  17. OBJS_posix32 = juce_graphics.cpp.posix32.o
  18. OBJS_posix64 = juce_graphics.cpp.posix64.o
  19. endif
  20. OBJS_win32 = juce_graphics.cpp.win32.o
  21. OBJS_win64 = juce_graphics.cpp.win64.o
  22. # --------------------------------------------------------------
  23. all: ../juce_graphics.a
  24. posix32: ../juce_graphics.posix32.a
  25. posix64: ../juce_graphics.posix64.a
  26. win32: ../juce_graphics.win32.a
  27. win64: ../juce_graphics.win64.a
  28. # --------------------------------------------------------------
  29. ../juce_graphics.a: $(OBJS)
  30. $(RM) $@
  31. $(AR) crs $@ $^
  32. ../juce_graphics.posix32.a: $(OBJS_posix32)
  33. $(RM) $@
  34. $(AR) crs $@ $^
  35. ../juce_graphics.posix64.a: $(OBJS_posix64)
  36. $(RM) $@
  37. $(AR) crs $@ $^
  38. ../juce_graphics.win32.a: $(OBJS_win32)
  39. $(RM) $@
  40. $(AR) crs $@ $^
  41. ../juce_graphics.win64.a: $(OBJS_win64)
  42. $(RM) $@
  43. $(AR) crs $@ $^
  44. ../libjuce_graphics.dll: $(OBJS)
  45. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  46. ../libjuce_graphics.dylib: $(OBJS)
  47. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  48. ../libjuce_graphics.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_graphics*.a ../libjuce_graphics.*
  66. debug:
  67. $(MAKE) DEBUG=true
  68. # --------------------------------------------------------------