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 6.6KB

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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.24.0
  11. SORD_VERSION = 0.16.0
  12. SRATOM_VERSION = 0.6.0
  13. LILV_VERSION = 0.24.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_arm32 = $(OBJDIR)/serd.c.arm32.o $(OBJDIR)/sord.c.arm32.o $(OBJDIR)/sratom.c.arm32.o $(OBJDIR)/lilv.c.arm32.o
  19. OBJS_posix32 = $(OBJDIR)/serd.c.posix32.o $(OBJDIR)/sord.c.posix32.o $(OBJDIR)/sratom.c.posix32.o $(OBJDIR)/lilv.c.posix32.o
  20. OBJS_posix64 = $(OBJDIR)/serd.c.posix64.o $(OBJDIR)/sord.c.posix64.o $(OBJDIR)/sratom.c.posix64.o $(OBJDIR)/lilv.c.posix64.o
  21. OBJS_win32 = $(OBJDIR)/serd.c.win32.o $(OBJDIR)/sord.c.win32.o $(OBJDIR)/sratom.c.win32.o $(OBJDIR)/lilv.c.win32.o
  22. OBJS_win64 = $(OBJDIR)/serd.c.win64.o $(OBJDIR)/sord.c.win64.o $(OBJDIR)/sratom.c.win64.o $(OBJDIR)/lilv.c.win64.o
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. all: $(MODULEDIR)/$(MODULENAME).a
  25. arm32: $(MODULEDIR)/$(MODULENAME).arm32.a
  26. posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
  27. posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
  28. win32: $(MODULEDIR)/$(MODULENAME).win32.a
  29. win64: $(MODULEDIR)/$(MODULENAME).win64.a
  30. # ---------------------------------------------------------------------------------------------------------------------
  31. clean:
  32. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  33. debug:
  34. $(MAKE) DEBUG=true
  35. # ---------------------------------------------------------------------------------------------------------------------
  36. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  37. -@mkdir -p $(MODULEDIR)
  38. @echo "Creating $(MODULENAME).a"
  39. $(SILENT)rm -f $@
  40. $(SILENT)$(AR) crs $@ $^
  41. $(MODULEDIR)/$(MODULENAME).arm32.a: $(OBJS_arm32)
  42. -@mkdir -p $(MODULEDIR)
  43. @echo "Creating $(MODULENAME).arm32.a"
  44. $(SILENT)rm -f $@
  45. $(SILENT)$(AR) crs $@ $^
  46. $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
  47. -@mkdir -p $(MODULEDIR)
  48. @echo "Creating $(MODULENAME).posix32.a"
  49. $(SILENT)rm -f $@
  50. $(SILENT)$(AR) crs $@ $^
  51. $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
  52. -@mkdir -p $(MODULEDIR)
  53. @echo "Creating $(MODULENAME).posix64.a"
  54. $(SILENT)rm -f $@
  55. $(SILENT)$(AR) crs $@ $^
  56. $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
  57. -@mkdir -p $(MODULEDIR)
  58. @echo "Creating $(MODULENAME).win32.a"
  59. $(SILENT)rm -f $@
  60. $(SILENT)$(AR) crs $@ $^
  61. $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
  62. -@mkdir -p $(MODULEDIR)
  63. @echo "Creating $(MODULENAME).win64.a"
  64. $(SILENT)rm -f $@
  65. $(SILENT)$(AR) crs $@ $^
  66. # ---------------------------------------------------------------------------------------------------------------------
  67. $(OBJDIR)/serd.c.o: serd.c
  68. -@mkdir -p $(OBJDIR)
  69. @echo "Compiling $<"
  70. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
  71. $(OBJDIR)/serd.c.%32.o: serd.c
  72. -@mkdir -p $(OBJDIR)
  73. @echo "Compiling $< (32bit)"
  74. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
  75. $(OBJDIR)/serd.c.%64.o: serd.c
  76. -@mkdir -p $(OBJDIR)
  77. @echo "Compiling $< (64bit)"
  78. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
  79. $(OBJDIR)/serd.c.arm32.o: serd.c
  80. -@mkdir -p $(OBJDIR)
  81. @echo "Compiling $< (ARM32)"
  82. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(ARM32_FLAGS) -c -o $@
  83. # ---------------------------------------------------------------------------------------------------------------------
  84. $(OBJDIR)/sord.c.o: sord.c
  85. -@mkdir -p $(OBJDIR)
  86. @echo "Compiling $<"
  87. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
  88. $(OBJDIR)/sord.c.%32.o: sord.c
  89. -@mkdir -p $(OBJDIR)
  90. @echo "Compiling $< (32bit)"
  91. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
  92. $(OBJDIR)/sord.c.%64.o: sord.c
  93. -@mkdir -p $(OBJDIR)
  94. @echo "Compiling $< (64bit)"
  95. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
  96. $(OBJDIR)/sord.c.arm32.o: sord.c
  97. -@mkdir -p $(OBJDIR)
  98. @echo "Compiling $< (ARM32)"
  99. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(ARM32_FLAGS) -c -o $@
  100. # ---------------------------------------------------------------------------------------------------------------------
  101. $(OBJDIR)/sratom.c.o: sratom.c
  102. -@mkdir -p $(OBJDIR)
  103. @echo "Compiling $<"
  104. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
  105. $(OBJDIR)/sratom.c.%32.o: sratom.c
  106. -@mkdir -p $(OBJDIR)
  107. @echo "Compiling $< (32bit)"
  108. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
  109. $(OBJDIR)/sratom.c.%64.o: sratom.c
  110. -@mkdir -p $(OBJDIR)
  111. @echo "Compiling $< (64bit)"
  112. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
  113. $(OBJDIR)/sratom.c.arm32.o: sratom.c
  114. -@mkdir -p $(OBJDIR)
  115. @echo "Compiling $< (ARM32)"
  116. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(ARM32_FLAGS) -c -o $@
  117. # ---------------------------------------------------------------------------------------------------------------------
  118. $(OBJDIR)/lilv.c.o: lilv.c
  119. -@mkdir -p $(OBJDIR)
  120. @echo "Compiling $<"
  121. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
  122. $(OBJDIR)/lilv.c.%32.o: lilv.c
  123. -@mkdir -p $(OBJDIR)
  124. @echo "Compiling $< (32bit)"
  125. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
  126. $(OBJDIR)/lilv.c.%64.o: lilv.c
  127. -@mkdir -p $(OBJDIR)
  128. @echo "Compiling $< (64bit)"
  129. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
  130. $(OBJDIR)/lilv.c.arm32.o: lilv.c
  131. -@mkdir -p $(OBJDIR)
  132. @echo "Compiling $< (ARM32)"
  133. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(ARM32_FLAGS) -c -o $@
  134. # ---------------------------------------------------------------------------------------------------------------------
  135. -include $(OBJS:%.o=%.d)
  136. -include $(OBJS_arm32:%.o=%.d)
  137. -include $(OBJS_posix32:%.o=%.d)
  138. -include $(OBJS_posix64:%.o=%.d)
  139. -include $(OBJS_win32:%.o=%.d)
  140. -include $(OBJS_win64:%.o=%.d)
  141. # ---------------------------------------------------------------------------------------------------------------------