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.

109 lines
3.0KB

  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.2
  11. LILV_VERSION = 0.16.0
  12. BUILD_C_FLAGS += -w
  13. BUILD_C_FLAGS += -Iconfig -I../../includes
  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. $(AR) rs $@ $^
  28. ../lilv.posix32.a: $(OBJS_posix32)
  29. $(AR) rs $@ $^
  30. ../lilv.posix64.a: $(OBJS_posix64)
  31. $(AR) rs $@ $^
  32. ../lilv.win32.a: $(OBJS_win32)
  33. $(AR) rs $@ $^
  34. ../lilv.win64.a: $(OBJS_win64)
  35. $(AR) rs $@ $^
  36. ../lilv.dll: $(OBJS)
  37. $(CXX) $^ -shared $(LINK_FLAGS) -o $@ $(CMD_STRIP) $@
  38. ../lilv.dylib: $(OBJS)
  39. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@ $(CMD_STRIP) $@
  40. ../lilv.so: $(OBJS)
  41. $(CXX) $^ -shared $(LINK_FLAGS) -o $@ $(CMD_STRIP) $@
  42. # --------------------------------------------------------------
  43. serd.c.o: serd.c
  44. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  45. sord.c.o: sord.c
  46. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  47. sratom.c.o: sratom.c
  48. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  49. lilv.c.o: lilv.c
  50. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  51. # --------------------------------------------------------------
  52. serd.c.%32.o: serd.c
  53. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  54. sord.c.%32.o: sord.c
  55. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  56. sratom.c.%32.o: sratom.c
  57. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  58. lilv.c.%32.o: lilv.c
  59. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  60. # --------------------------------------------------------------
  61. serd.c.%64.o: serd.c
  62. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  63. sord.c.%64.o: sord.c
  64. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  65. sratom.c.%64.o: sratom.c
  66. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  67. lilv.c.%64.o: lilv.c
  68. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  69. # --------------------------------------------------------------
  70. clean:
  71. rm -f *.o ../lilv.*
  72. debug:
  73. $(MAKE) DEBUG=true