Makefile.am 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. AUTOMAKE_OPTIONS = subdir-objects
  2. AM_CPPFLAGS = -I$(top_srcdir)/include
  3. AM_CFLAGS = $(OGG_CFLAGS) $(CAIRO_CFLAGS)
  4. EXTRA_DIST = \
  5. encoder_disabled.c \
  6. arm/arm2gnu.pl \
  7. arm/armopts.s.in \
  8. arm/armcpu.c \
  9. arm/armbits.h \
  10. arm/armbits.s \
  11. arm/armfrag.s \
  12. arm/armidct.s \
  13. arm/armint.h \
  14. arm/armenc.h \
  15. arm/armencfrag.s \
  16. arm/armenquant.s \
  17. c64x/c64xint.h \
  18. c64x/c64xdec.h \
  19. x86/mmxfrag.c \
  20. x86/mmxidct.c \
  21. x86/mmxloop.h \
  22. x86/mmxstate.c \
  23. x86/sse2idct.c \
  24. x86/x86cpu.c \
  25. x86/x86int.h \
  26. x86/x86state.c \
  27. x86/mmxencfrag.c \
  28. x86/mmxfdct.c \
  29. x86/sse2encfrag.c \
  30. x86/sse2fdct.c \
  31. x86/sse2trans.h \
  32. x86/x86enc.c \
  33. x86/x86enc.h \
  34. x86/x86enquant.c \
  35. x86/x86zigzag.h \
  36. x86_vc
  37. lib_LTLIBRARIES = libtheoradec.la libtheoraenc.la libtheora.la
  38. if THEORA_DISABLE_ENCODE
  39. encoder_uniq_sources = \
  40. encoder_disabled.c
  41. encoder_sources = \
  42. $(encoder_uniq_sources)
  43. else
  44. encoder_uniq_x86_sources = \
  45. x86/mmxencfrag.c \
  46. x86/mmxfdct.c \
  47. x86/sse2encfrag.c \
  48. x86/x86enquant.c \
  49. x86/x86enc.c
  50. encoder_uniq_x86_64_sources = \
  51. x86/sse2fdct.c
  52. encoder_shared_x86_sources = \
  53. x86/x86cpu.c \
  54. x86/mmxfrag.c \
  55. x86/mmxidct.c \
  56. x86/mmxstate.c \
  57. x86/sse2idct.c \
  58. x86/x86state.c
  59. encoder_shared_x86_64_sources =
  60. encoder_uniq_arm_sources = \
  61. armencfrag-gnu.S \
  62. armenquant-gnu.S \
  63. arm/armenc.c
  64. if CPU_arm
  65. BUILT_SOURCES = \
  66. armbits-gnu.S \
  67. armfrag-gnu.S \
  68. armidct-gnu.S \
  69. armloop-gnu.S \
  70. armopts-gnu.S
  71. endif
  72. encoder_shared_arm_sources = \
  73. armbits-gnu.S \
  74. armfrag-gnu.S \
  75. armidct-gnu.S \
  76. armloop-gnu.S \
  77. arm/armcpu.c \
  78. arm/armstate.c
  79. if CPU_x86_64
  80. encoder_uniq_arch_sources = \
  81. $(encoder_uniq_x86_sources) \
  82. $(encoder_uniq_x86_64_sources)
  83. nodist_encoder_uniq_arch_sources =
  84. encoder_shared_arch_sources = \
  85. $(encoder_shared_x86_sources) \
  86. $(encoder_shared_x86_64_sources)
  87. nodist_encoder_shared_arch_sources =
  88. else
  89. if CPU_x86_32
  90. encoder_uniq_arch_sources = $(encoder_uniq_x86_sources)
  91. nodist_encoder_uniq_arch_sources =
  92. encoder_shared_arch_sources = $(encoder_shared_x86_sources)
  93. nodist_encoder_shared_arch_sources =
  94. else
  95. if CPU_arm
  96. encoder_uniq_arch_sources =
  97. nodist_encoder_uniq_arch_sources = $(encoder_uniq_arm_sources)
  98. encoder_shared_arch_sources =
  99. nodist_encoder_shared_arch_sources = $(encoder_shared_arm_sources)
  100. else
  101. encoder_uniq_arch_sources =
  102. nodist_encoder_uniq_arch_sources =
  103. encoder_shared_arch_sources =
  104. nodist_encoder_shared_arch_sources =
  105. endif
  106. endif
  107. endif
  108. encoder_uniq_sources = \
  109. analyze.c \
  110. fdct.c \
  111. encfrag.c \
  112. encapiwrapper.c \
  113. encinfo.c \
  114. encode.c \
  115. enquant.c \
  116. huffenc.c \
  117. mathops.c \
  118. mcenc.c \
  119. rate.c \
  120. tokenize.c \
  121. $(encoder_uniq_arch_sources)
  122. encoder_sources = \
  123. apiwrapper.c \
  124. bitpack.c \
  125. dequant.c \
  126. fragment.c \
  127. idct.c \
  128. internal.c \
  129. state.c \
  130. quant.c \
  131. $(encoder_shared_arch_sources) \
  132. $(encoder_uniq_sources)
  133. nodist_encoder_arch_sources = \
  134. $(nodist_encoder_shared_arch_sources) \
  135. $(nodist_encoder_uniq_arch_sources)
  136. endif
  137. decoder_x86_sources = \
  138. x86/x86cpu.c \
  139. x86/mmxidct.c \
  140. x86/mmxfrag.c \
  141. x86/mmxstate.c \
  142. x86/sse2idct.c \
  143. x86/x86state.c
  144. decoder_arm_sources = \
  145. arm/armcpu.c \
  146. arm/armstate.c
  147. nodist_decoder_arm_sources = \
  148. armbits-gnu.S \
  149. armfrag-gnu.S \
  150. armidct-gnu.S \
  151. armloop-gnu.S
  152. decoder_c64x_sources = \
  153. c64x/c64xdec.c \
  154. c64x/c64xfrag.c \
  155. c64x/c64xidct.c \
  156. c64x/c64xstate.c
  157. if CPU_x86_64
  158. decoder_arch_sources = $(decoder_x86_sources)
  159. nodist_decoder_arch_sources =
  160. else
  161. if CPU_x86_32
  162. decoder_arch_sources = $(decoder_x86_sources)
  163. nodist_decoder_arch_sources =
  164. else
  165. if CPU_arm
  166. decoder_arch_sources = $(decoder_arm_sources)
  167. nodist_decoder_arch_sources = $(nodist_decoder_arm_sources)
  168. else
  169. if CPU_c64x
  170. decoder_arch_sources = $(decoder_c64x_sources)
  171. nodist_decoder_arch_sources =
  172. else
  173. decoder_arch_sources =
  174. nodist_decoder_arch_sources =
  175. endif
  176. endif
  177. endif
  178. endif
  179. decoder_sources = \
  180. apiwrapper.c \
  181. bitpack.c \
  182. decapiwrapper.c \
  183. decinfo.c \
  184. decode.c \
  185. dequant.c \
  186. fragment.c \
  187. huffdec.c \
  188. idct.c \
  189. info.c \
  190. internal.c \
  191. quant.c \
  192. state.c \
  193. $(decoder_arch_sources)
  194. noinst_HEADERS = \
  195. apiwrapper.h \
  196. bitpack.h \
  197. dct.h \
  198. decint.h \
  199. dequant.h \
  200. encint.h \
  201. enquant.h \
  202. huffdec.h \
  203. huffenc.h \
  204. huffman.h \
  205. internal.h \
  206. mathops.h \
  207. modedec.h \
  208. ocintrin.h \
  209. quant.h \
  210. state.h \
  211. arm/armcpu.h \
  212. c64x/c64xdec.h \
  213. c64x/c64xint.h \
  214. x86/mmxloop.h \
  215. x86/sse2trans.h \
  216. x86/x86cpu.h \
  217. x86/x86enc.h \
  218. x86/x86int.h \
  219. x86/x86zigzag.h
  220. libtheoradec_la_SOURCES = \
  221. $(decoder_sources) \
  222. Version_script-dec theoradec.exp
  223. nodist_libtheoradec_la_SOURCES = \
  224. $(nodist_decoder_arch_sources)
  225. libtheoradec_la_LDFLAGS = \
  226. -version-info @THDEC_LIB_CURRENT@:@THDEC_LIB_REVISION@:@THDEC_LIB_AGE@ \
  227. @THEORADEC_LDFLAGS@ @CAIRO_LIBS@ \
  228. -no-undefined
  229. libtheoraenc_la_SOURCES = \
  230. $(encoder_sources) \
  231. Version_script-enc theoraenc.exp
  232. nodist_libtheoraenc_la_SOURCES = \
  233. $(nodist_encoder_arch_sources)
  234. libtheoraenc_la_LDFLAGS = \
  235. -version-info @THENC_LIB_CURRENT@:@THENC_LIB_REVISION@:@THENC_LIB_AGE@ \
  236. @THEORAENC_LDFLAGS@ $(OGG_LIBS) \
  237. -no-undefined
  238. libtheoraenc_la_LIBADD = libtheoradec.la
  239. libtheora_la_SOURCES = \
  240. $(decoder_sources) \
  241. $(encoder_uniq_sources) \
  242. Version_script theora.exp
  243. nodist_libtheora_la_SOURCES = \
  244. $(nodist_decoder_arch_sources) \
  245. $(nodist_encoder_uniq_arch_sources)
  246. libtheora_la_LDFLAGS = \
  247. -version-info @TH_LIB_CURRENT@:@TH_LIB_REVISION@:@TH_LIB_AGE@ \
  248. @THEORA_LDFLAGS@ @CAIRO_LIBS@ $(OGG_LIBS) \
  249. -no-undefined
  250. debug:
  251. $(MAKE) all CFLAGS="@DEBUG@"
  252. profile:
  253. $(MAKE) all CFLAGS="@PROFILE@"
  254. # contstruct various symbol export list files
  255. .def.exp : defexp.awk
  256. awk -f defexp.awk $< > $@
  257. CLEANFILES = \
  258. armbits-gnu.S \
  259. armfrag-gnu.S \
  260. armidct-gnu.S \
  261. armloop-gnu.S \
  262. armopts-gnu.S \
  263. armencfrag-gnu.S \
  264. armenquant-gnu.S
  265. # automake doesn't do dependency tracking for asm files, that I can tell
  266. armfrag-gnu.S: armopts-gnu.S
  267. armidct-gnu.S: armopts-gnu.S
  268. armloop-gnu.S: armopts-gnu.S
  269. armencfrag-gnu.S: armopts-gnu.S
  270. armenquant-gnu.S: armopts-gnu.S
  271. # convert ARM asm to GNU as format
  272. %-gnu.S: $(srcdir)/arm/%.s
  273. $(srcdir)/arm/arm2gnu.pl < $< > $@
  274. # Special case for armopts.s, because it is built by configure
  275. armopts-gnu.S: arm/armopts.s
  276. $(srcdir)/arm/arm2gnu.pl < $< > $@