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.

120 lines
3.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for lilv #
  3. # ----------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. SERD_VERSION = 0.18.2
  9. SORD_VERSION = 0.12.0
  10. SRATOM_VERSION = 0.4.4
  11. LILV_VERSION = 0.18.0
  12. # --------------------------------------------------------------
  13. BUILD_C_FLAGS += $(LILV_FLAGS) -Iconfig -I../../includes -w
  14. LINK_FLAGS += $(LILV_LIBS)
  15. # --------------------------------------------------------------
  16. OBJS = serd.c.o sord.c.o sratom.c.o lilv.c.o
  17. OBJS_posix32 = serd.c.posix32.o sord.c.posix32.o sratom.c.posix32.o lilv.c.posix32.o
  18. OBJS_posix64 = serd.c.posix64.o sord.c.posix64.o sratom.c.posix64.o lilv.c.posix64.o
  19. OBJS_win32 = serd.c.win32.o sord.c.win32.o sratom.c.win32.o lilv.c.win32.o
  20. OBJS_win64 = serd.c.win64.o sord.c.win64.o sratom.c.win64.o lilv.c.win64.o
  21. # --------------------------------------------------------------
  22. all: ../lilv.a
  23. posix32: ../lilv.posix32.a
  24. posix64: ../lilv.posix64.a
  25. win32: ../lilv.win32.a
  26. win64: ../lilv.win64.a
  27. # --------------------------------------------------------------
  28. clean:
  29. $(RM) *.o ../lilv*.a
  30. debug:
  31. $(MAKE) DEBUG=true
  32. # --------------------------------------------------------------
  33. ../lilv.a: $(OBJS)
  34. $(RM) $@
  35. $(AR) crs $@ $^
  36. ../lilv.posix32.a: $(OBJS_posix32)
  37. $(RM) $@
  38. $(AR) crs $@ $^
  39. ../lilv.posix64.a: $(OBJS_posix64)
  40. $(RM) $@
  41. $(AR) crs $@ $^
  42. ../lilv.win32.a: $(OBJS_win32)
  43. $(RM) $@
  44. $(AR) crs $@ $^
  45. ../lilv.win64.a: $(OBJS_win64)
  46. $(RM) $@
  47. $(AR) crs $@ $^
  48. # --------------------------------------------------------------
  49. SERD_DEPS = serd.c serd-$(SERD_VERSION)/src/* serd-$(SERD_VERSION)/serd/serd.h
  50. serd.c.o: $(SERD_DEPS)
  51. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  52. serd.c.%32.o: $(SERD_DEPS)
  53. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  54. serd.c.%64.o: $(SERD_DEPS)
  55. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  56. # --------------------------------------------------------------
  57. SORD_DEPS = sord.c sord-$(SORD_VERSION)/src/* sord-$(SORD_VERSION)/sord/sord.h
  58. sord.c.o: $(SORD_DEPS)
  59. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  60. sord.c.%32.o: $(SORD_DEPS)
  61. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  62. sord.c.%64.o: $(SORD_DEPS)
  63. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  64. # --------------------------------------------------------------
  65. SRATOM_DEPS = sratom.c sratom-$(SRATOM_VERSION)/src/* sratom-$(SRATOM_VERSION)/sratom/sratom.h
  66. sratom.c.o: $(SRATOM_DEPS)
  67. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  68. sratom.c.%32.o: $(SRATOM_DEPS)
  69. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  70. sratom.c.%64.o: $(SRATOM_DEPS)
  71. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  72. # --------------------------------------------------------------
  73. LILV_DEPS = lilv.c lilv-$(LILV_VERSION)/src/* lilv-$(LILV_VERSION)/src/zix/* lilv-$(LILV_VERSION)/lilv/lilv.h
  74. lilv.c.o: $(LILV_DEPS)
  75. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  76. lilv.c.%32.o: $(LILV_DEPS)
  77. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  78. lilv.c.%64.o: $(LILV_DEPS)
  79. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  80. # --------------------------------------------------------------