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.

Makefile 5.5KB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. #!/usr/bin/make -f
  2. # Makefile for lilv #
  3. # ----------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=lilv
  8. include ../Makefile.mk
  9. # ----------------------------------------------------------------------------------------------------------------------------
  10. SERD_VERSION = 0.20.0
  11. SORD_VERSION = 0.12.2
  12. SRATOM_VERSION = 0.4.6
  13. LILV_VERSION = 0.20.0
  14. # ----------------------------------------------------------------------------------------------------------------------------
  15. BUILD_C_FLAGS += $(LILV_FLAGS) -Iconfig -w
  16. # ----------------------------------------------------------------------------------------------------------------------------
  17. OBJS = $(OBJDIR)/serd.c.o $(OBJDIR)/sord.c.o $(OBJDIR)/sratom.c.o $(OBJDIR)/lilv.c.o
  18. OBJS_posix32 = $(OBJDIR)/serd.c.posix32.o $(OBJDIR)/sord.c.posix32.o $(OBJDIR)/sratom.c.posix32.o $(OBJDIR)/lilv.c.posix32.o
  19. OBJS_posix64 = $(OBJDIR)/serd.c.posix64.o $(OBJDIR)/sord.c.posix64.o $(OBJDIR)/sratom.c.posix64.o $(OBJDIR)/lilv.c.posix64.o
  20. OBJS_win32 = $(OBJDIR)/serd.c.win32.o $(OBJDIR)/sord.c.win32.o $(OBJDIR)/sratom.c.win32.o $(OBJDIR)/lilv.c.win32.o
  21. OBJS_win64 = $(OBJDIR)/serd.c.win64.o $(OBJDIR)/sord.c.win64.o $(OBJDIR)/sratom.c.win64.o $(OBJDIR)/lilv.c.win64.o
  22. # ----------------------------------------------------------------------------------------------------------------------------
  23. all: $(MODULEDIR)/$(MODULENAME).a
  24. posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
  25. posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
  26. win32: $(MODULEDIR)/$(MODULENAME).win32.a
  27. win64: $(MODULEDIR)/$(MODULENAME).win64.a
  28. # ----------------------------------------------------------------------------------------------------------------------------
  29. clean:
  30. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  31. debug:
  32. $(MAKE) DEBUG=true
  33. # ----------------------------------------------------------------------------------------------------------------------------
  34. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  35. -@mkdir -p $(MODULEDIR)
  36. @echo "Creating $(MODULENAME).a"
  37. @rm -f $@
  38. @$(AR) crs $@ $^
  39. $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
  40. -@mkdir -p $(MODULEDIR)
  41. @echo "Creating $(MODULENAME).posix32.a"
  42. @rm -f $@
  43. @$(AR) crs $@ $^
  44. $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
  45. -@mkdir -p $(MODULEDIR)
  46. @echo "Creating $(MODULENAME).posix64.a"
  47. @rm -f $@
  48. @$(AR) crs $@ $^
  49. $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
  50. -@mkdir -p $(MODULEDIR)
  51. @echo "Creating $(MODULENAME).win32.a"
  52. @rm -f $@
  53. @$(AR) crs $@ $^
  54. $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
  55. -@mkdir -p $(MODULEDIR)
  56. @echo "Creating $(MODULENAME).win64.a"
  57. @rm -f $@
  58. @$(AR) crs $@ $^
  59. # ----------------------------------------------------------------------------------------------------------------------------
  60. $(OBJDIR)/serd.c.o: serd.c
  61. -@mkdir -p $(OBJDIR)
  62. @echo "Compiling $<"
  63. @$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  64. $(OBJDIR)/serd.c.%32.o: serd.c
  65. -@mkdir -p $(OBJDIR)
  66. @echo "Compiling $< (32bit)"
  67. @$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  68. $(OBJDIR)/serd.c.%64.o: serd.c
  69. -@mkdir -p $(OBJDIR)
  70. @echo "Compiling $< (64bit)"
  71. @$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  72. # ----------------------------------------------------------------------------------------------------------------------------
  73. $(OBJDIR)/sord.c.o: sord.c
  74. -@mkdir -p $(OBJDIR)
  75. @echo "Compiling $<"
  76. @$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  77. $(OBJDIR)/sord.c.%32.o: sord.c
  78. -@mkdir -p $(OBJDIR)
  79. @echo "Compiling $< (32bit)"
  80. @$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  81. $(OBJDIR)/sord.c.%64.o: sord.c
  82. -@mkdir -p $(OBJDIR)
  83. @echo "Compiling $< (64bit)"
  84. @$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  85. # ----------------------------------------------------------------------------------------------------------------------------
  86. $(OBJDIR)/sratom.c.o: sratom.c
  87. -@mkdir -p $(OBJDIR)
  88. @echo "Compiling $<"
  89. @$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  90. $(OBJDIR)/sratom.c.%32.o: sratom.c
  91. -@mkdir -p $(OBJDIR)
  92. @echo "Compiling $< (32bit)"
  93. @$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  94. $(OBJDIR)/sratom.c.%64.o: sratom.c
  95. -@mkdir -p $(OBJDIR)
  96. @echo "Compiling $< (64bit)"
  97. @$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  98. # ----------------------------------------------------------------------------------------------------------------------------
  99. $(OBJDIR)/lilv.c.o: lilv.c
  100. -@mkdir -p $(OBJDIR)
  101. @echo "Compiling $<"
  102. @$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  103. $(OBJDIR)/lilv.c.%32.o: lilv.c
  104. -@mkdir -p $(OBJDIR)
  105. @echo "Compiling $< (32bit)"
  106. @$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  107. $(OBJDIR)/lilv.c.%64.o: lilv.c
  108. -@mkdir -p $(OBJDIR)
  109. @echo "Compiling $< (64bit)"
  110. @$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  111. # ----------------------------------------------------------------------------------------------------------------------------
  112. -include $(OBJS:%.o=%.d)
  113. -include $(OBJS_posix32:%.o=%.d)
  114. -include $(OBJS_posix64:%.o=%.d)
  115. -include $(OBJS_win32:%.o=%.d)
  116. -include $(OBJS_win64:%.o=%.d)
  117. # ----------------------------------------------------------------------------------------------------------------------------