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.

127 lines
3.2KB

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