Collection of tools useful for audio production
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.

122 lines
3.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for static lilv #
  3. # ------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. SERD_VERSION = 0.18.0
  8. SORD_VERSION = 0.10.4
  9. SRATOM_VERSION = 0.4.0
  10. LILV_VERSION = 0.14.4
  11. BUILD_C_FLAGS += -fvisibility=hidden -fPIC
  12. BUILD_C_FLAGS += -Iconfig -I../carla-includes
  13. OBJS = serd.o sord.o sratom.o lilv.o
  14. OBJS_posix32 = serd_posix32.o sord_posix32.o sratom_posix32.o lilv_posix32.o
  15. OBJS_posix64 = serd_posix64.o sord_posix64.o sratom_posix64.o lilv_posix64.o
  16. OBJS_win32 = serd_win32.o sord_win32.o sratom_win32.o lilv_win32.o
  17. OBJS_win64 = serd_win64.o sord_win64.o sratom_win64.o lilv_win64.o
  18. # --------------------------------------------------------------
  19. all: carla_lilv.a
  20. carla_lilv.a: $(OBJS)
  21. $(AR) rs $@ $^
  22. serd.o: serd.c
  23. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  24. sord.o: sord.c
  25. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  26. sratom.o: sratom.c
  27. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  28. lilv.o: lilv.c
  29. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  30. # --------------------------------------------------------------
  31. posix32: carla_lilv_posix32.a
  32. carla_lilv_posix32.a: $(OBJS_posix32)
  33. $(AR) rs $@ $^
  34. serd_posix32.o: serd.c
  35. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  36. sord_posix32.o: sord.c
  37. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  38. sratom_posix32.o: sratom.c
  39. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  40. lilv_posix32.o: lilv.c
  41. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  42. # --------------------------------------------------------------
  43. posix64: carla_lilv_posix64.a
  44. carla_lilv_posix64.a: $(OBJS_posix64)
  45. $(AR) rs $@ $^
  46. serd_posix64.o: serd.c
  47. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  48. sord_posix64.o: sord.c
  49. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  50. sratom_posix64.o: sratom.c
  51. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  52. lilv_posix64.o: lilv.c
  53. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  54. # --------------------------------------------------------------
  55. win32: carla_lilv_win32.a
  56. carla_lilv_win32.a: $(OBJS_win32)
  57. $(AR) rs $@ $^
  58. serd_win32.o: serd.c
  59. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  60. sord_win32.o: sord.c
  61. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  62. sratom_win32.o: sratom.c
  63. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  64. lilv_win32.o: lilv.c
  65. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  66. # --------------------------------------------------------------
  67. win64: carla_lilv_win64.a
  68. carla_lilv_win64.a: $(OBJS_win64)
  69. $(AR) rs $@ $^
  70. serd_win64.o: serd.c
  71. $(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  72. sord_win64.o: sord.c
  73. $(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  74. sratom_win64.o: sratom.c
  75. $(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  76. lilv_win64.o: lilv.c
  77. $(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  78. # --------------------------------------------------------------
  79. clean:
  80. rm -f *.a *.o