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.

116 lines
3.1KB

  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.16.0
  12. BUILD_C_FLAGS += $(LILV_FLAGS) -Iconfig -I../../includes -w
  13. LINK_FLAGS += $(LILV_LIBS)
  14. OBJS = serd.c.o sord.c.o sratom.c.o lilv.c.o
  15. OBJS_posix32 = serd.c.posix32.o sord.c.posix32.o sratom.c.posix32.o lilv.c.posix32.o
  16. OBJS_posix64 = serd.c.posix64.o sord.c.posix64.o sratom.c.posix64.o lilv.c.posix64.o
  17. OBJS_win32 = serd.c.win32.o sord.c.win32.o sratom.c.win32.o lilv.c.win32.o
  18. OBJS_win64 = serd.c.win64.o sord.c.win64.o sratom.c.win64.o lilv.c.win64.o
  19. # --------------------------------------------------------------
  20. all: ../lilv.a
  21. posix32: ../lilv.posix32.a
  22. posix64: ../lilv.posix64.a
  23. win32: ../lilv.win32.a
  24. win64: ../lilv.win64.a
  25. # --------------------------------------------------------------
  26. ../lilv.a: $(OBJS)
  27. $(RM) $@
  28. $(AR) crs $@ $^
  29. ../lilv.posix32.a: $(OBJS_posix32)
  30. $(RM) $@
  31. $(AR) crs $@ $^
  32. ../lilv.posix64.a: $(OBJS_posix64)
  33. $(RM) $@
  34. $(AR) crs $@ $^
  35. ../lilv.win32.a: $(OBJS_win32)
  36. $(RM) $@
  37. $(AR) crs $@ $^
  38. ../lilv.win64.a: $(OBJS_win64)
  39. $(RM) $@
  40. $(AR) crs $@ $^
  41. ../liblilv.dll: $(OBJS)
  42. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  43. ../liblilv.dylib: $(OBJS)
  44. $(CC) $^ -dynamiclib $(LINK_FLAGS) -o $@
  45. ../liblilv.so: $(OBJS)
  46. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  47. # --------------------------------------------------------------
  48. serd.c.o: serd.c
  49. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  50. sord.c.o: sord.c
  51. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  52. sratom.c.o: sratom.c
  53. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  54. lilv.c.o: lilv.c
  55. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  56. # --------------------------------------------------------------
  57. serd.c.%32.o: serd.c
  58. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  59. sord.c.%32.o: sord.c
  60. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  61. sratom.c.%32.o: sratom.c
  62. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  63. lilv.c.%32.o: lilv.c
  64. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  65. # --------------------------------------------------------------
  66. serd.c.%64.o: serd.c
  67. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  68. sord.c.%64.o: sord.c
  69. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  70. sratom.c.%64.o: sratom.c
  71. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  72. lilv.c.%64.o: lilv.c
  73. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  74. # --------------------------------------------------------------
  75. clean:
  76. $(RM) *.o ../lilv*.a ../liblilv.*
  77. debug:
  78. $(MAKE) DEBUG=true
  79. # --------------------------------------------------------------