Makefile.am 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. #******************************************************************************
  2. # Copyright (c), Recep Aslantas. *
  3. # *
  4. # MIT License (MIT), http://opensource.org/licenses/MIT *
  5. # Full license can be found in the LICENSE file *
  6. # *
  7. #******************************************************************************
  8. ACLOCAL_AMFLAGS = -I m4
  9. AM_CFLAGS = -Wall \
  10. -std=gnu11 \
  11. -O3 \
  12. -Wstrict-aliasing=2 \
  13. -fstrict-aliasing
  14. lib_LTLIBRARIES = libcglm.la
  15. libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
  16. checkLDFLAGS = -L./.libs \
  17. -lm \
  18. -lcglm
  19. checkCFLAGS = $(AM_CFLAGS) \
  20. -std=gnu11 \
  21. -O3 \
  22. -DCGLM_DEFINE_PRINTS \
  23. -I./include
  24. check_PROGRAMS = test/tests
  25. TESTS = $(check_PROGRAMS)
  26. test_tests_LDFLAGS = $(checkLDFLAGS)
  27. test_tests_CFLAGS = $(checkCFLAGS)
  28. cglmdir=$(includedir)/cglm
  29. cglm_HEADERS = include/cglm/version.h \
  30. include/cglm/common.h \
  31. include/cglm/types.h \
  32. include/cglm/types-struct.h \
  33. include/cglm/cglm.h \
  34. include/cglm/call.h \
  35. include/cglm/struct.h \
  36. include/cglm/cam.h \
  37. include/cglm/io.h \
  38. include/cglm/mat4.h \
  39. include/cglm/mat4x2.h \
  40. include/cglm/mat4x3.h \
  41. include/cglm/mat3.h \
  42. include/cglm/mat3x2.h \
  43. include/cglm/mat3x4.h \
  44. include/cglm/mat2.h \
  45. include/cglm/mat2x3.h \
  46. include/cglm/mat2x4.h \
  47. include/cglm/affine-pre.h \
  48. include/cglm/affine-post.h \
  49. include/cglm/affine.h \
  50. include/cglm/affine-mat.h \
  51. include/cglm/vec2.h \
  52. include/cglm/vec2-ext.h \
  53. include/cglm/ivec2.h \
  54. include/cglm/vec3.h \
  55. include/cglm/vec3-ext.h \
  56. include/cglm/ivec3.h \
  57. include/cglm/vec4.h \
  58. include/cglm/vec4-ext.h \
  59. include/cglm/ivec4.h \
  60. include/cglm/euler.h \
  61. include/cglm/util.h \
  62. include/cglm/quat.h \
  63. include/cglm/plane.h \
  64. include/cglm/frustum.h \
  65. include/cglm/box.h \
  66. include/cglm/aabb2d.h \
  67. include/cglm/color.h \
  68. include/cglm/project.h \
  69. include/cglm/sphere.h \
  70. include/cglm/ease.h \
  71. include/cglm/curve.h \
  72. include/cglm/bezier.h \
  73. include/cglm/applesimd.h \
  74. include/cglm/ray.h \
  75. include/cglm/affine2d.h
  76. cglm_clipspacedir=$(includedir)/cglm/clipspace
  77. cglm_clipspace_HEADERS = include/cglm/clipspace/persp.h \
  78. include/cglm/clipspace/persp_lh_no.h \
  79. include/cglm/clipspace/persp_lh_zo.h \
  80. include/cglm/clipspace/persp_rh_no.h \
  81. include/cglm/clipspace/persp_rh_zo.h \
  82. include/cglm/clipspace/ortho_lh_no.h \
  83. include/cglm/clipspace/ortho_lh_zo.h \
  84. include/cglm/clipspace/ortho_rh_no.h \
  85. include/cglm/clipspace/ortho_rh_zo.h \
  86. include/cglm/clipspace/view_lh.h \
  87. include/cglm/clipspace/view_rh.h \
  88. include/cglm/clipspace/view_lh_no.h \
  89. include/cglm/clipspace/view_lh_zo.h \
  90. include/cglm/clipspace/view_rh_no.h \
  91. include/cglm/clipspace/view_rh_zo.h \
  92. include/cglm/clipspace/project_no.h \
  93. include/cglm/clipspace/project_zo.h
  94. cglm_calldir=$(includedir)/cglm/call
  95. cglm_call_HEADERS = include/cglm/call/mat4.h \
  96. include/cglm/call/mat4x2.h \
  97. include/cglm/call/mat4x3.h \
  98. include/cglm/call/mat3.h \
  99. include/cglm/call/mat3x2.h \
  100. include/cglm/call/mat3x4.h \
  101. include/cglm/call/mat2.h \
  102. include/cglm/call/mat2x3.h \
  103. include/cglm/call/mat2x4.h \
  104. include/cglm/call/vec2.h \
  105. include/cglm/call/vec3.h \
  106. include/cglm/call/vec4.h \
  107. include/cglm/call/ivec2.h \
  108. include/cglm/call/ivec3.h \
  109. include/cglm/call/ivec4.h \
  110. include/cglm/call/io.h \
  111. include/cglm/call/cam.h \
  112. include/cglm/call/quat.h \
  113. include/cglm/call/euler.h \
  114. include/cglm/call/plane.h \
  115. include/cglm/call/frustum.h \
  116. include/cglm/call/box.h \
  117. include/cglm/call/project.h \
  118. include/cglm/call/sphere.h \
  119. include/cglm/call/ease.h \
  120. include/cglm/call/curve.h \
  121. include/cglm/call/bezier.h \
  122. include/cglm/call/ray.h \
  123. include/cglm/call/affine.h \
  124. include/cglm/call/affine2d.h
  125. cglm_call_clipspacedir=$(includedir)/cglm/call/clipspace
  126. cglm_call_clipspace_HEADERS = include/cglm/call/clipspace/persp_lh_no.h \
  127. include/cglm/call/clipspace/persp_lh_zo.h \
  128. include/cglm/call/clipspace/persp_rh_no.h \
  129. include/cglm/call/clipspace/persp_rh_zo.h \
  130. include/cglm/call/clipspace/ortho_lh_no.h \
  131. include/cglm/call/clipspace/ortho_lh_zo.h \
  132. include/cglm/call/clipspace/ortho_rh_no.h \
  133. include/cglm/call/clipspace/ortho_rh_zo.h \
  134. include/cglm/call/clipspace/view_lh_no.h \
  135. include/cglm/call/clipspace/view_lh_zo.h \
  136. include/cglm/call/clipspace/view_rh_no.h \
  137. include/cglm/call/clipspace/view_rh_zo.h \
  138. include/cglm/call/clipspace/project_no.h \
  139. include/cglm/call/clipspace/project_zo.h
  140. cglm_simddir=$(includedir)/cglm/simd
  141. cglm_simd_HEADERS = include/cglm/simd/intrin.h \
  142. include/cglm/simd/x86.h \
  143. include/cglm/simd/arm.h \
  144. include/cglm/simd/wasm.h
  145. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  146. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  147. include/cglm/simd/sse2/mat4.h \
  148. include/cglm/simd/sse2/mat3.h \
  149. include/cglm/simd/sse2/mat2.h \
  150. include/cglm/simd/sse2/quat.h
  151. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  152. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  153. include/cglm/simd/avx/affine.h
  154. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  155. cglm_simd_neon_HEADERS = include/cglm/simd/neon/affine.h \
  156. include/cglm/simd/neon/mat2.h \
  157. include/cglm/simd/neon/mat4.h \
  158. include/cglm/simd/neon/quat.h
  159. cglm_simd_wasmdir=$(includedir)/cglm/simd/wasm
  160. cglm_simd_wasm_HEADERS = include/cglm/simd/wasm/affine.h \
  161. include/cglm/simd/wasm/mat2.h \
  162. include/cglm/simd/wasm/mat3.h \
  163. include/cglm/simd/wasm/mat4.h \
  164. include/cglm/simd/wasm/quat.h
  165. cglm_handeddir=$(includedir)/cglm/handed
  166. cglm_handed_HEADERS = include/cglm/handed/euler_to_quat_lh.h \
  167. include/cglm/handed/euler_to_quat_rh.h
  168. cglm_structdir=$(includedir)/cglm/struct
  169. cglm_struct_HEADERS = include/cglm/struct/mat4.h \
  170. include/cglm/struct/mat4x2.h \
  171. include/cglm/struct/mat4x3.h \
  172. include/cglm/struct/mat3.h \
  173. include/cglm/struct/mat3x2.h \
  174. include/cglm/struct/mat3x4.h \
  175. include/cglm/struct/mat2.h \
  176. include/cglm/struct/mat2x3.h \
  177. include/cglm/struct/mat2x4.h \
  178. include/cglm/struct/affine-pre.h \
  179. include/cglm/struct/affine-post.h \
  180. include/cglm/struct/affine-mat.h \
  181. include/cglm/struct/affine.h \
  182. include/cglm/struct/affine2d.h \
  183. include/cglm/struct/vec2.h \
  184. include/cglm/struct/vec2-ext.h \
  185. include/cglm/struct/ivec2.h \
  186. include/cglm/struct/vec3.h \
  187. include/cglm/struct/vec3-ext.h \
  188. include/cglm/struct/ivec3.h \
  189. include/cglm/struct/vec4.h \
  190. include/cglm/struct/vec4-ext.h \
  191. include/cglm/struct/ivec4.h \
  192. include/cglm/struct/io.h \
  193. include/cglm/struct/cam.h \
  194. include/cglm/struct/quat.h \
  195. include/cglm/struct/euler.h \
  196. include/cglm/struct/plane.h \
  197. include/cglm/struct/frustum.h \
  198. include/cglm/struct/box.h \
  199. include/cglm/struct/aabb2d.h \
  200. include/cglm/struct/project.h \
  201. include/cglm/struct/sphere.h \
  202. include/cglm/struct/color.h \
  203. include/cglm/struct/curve.h
  204. cglm_struct_clipspacedir=$(includedir)/cglm/struct/clipspace
  205. cglm_struct_clipspace_HEADERS = include/cglm/struct/clipspace/persp_lh_no.h \
  206. include/cglm/struct/clipspace/persp_lh_zo.h \
  207. include/cglm/struct/clipspace/persp_rh_no.h \
  208. include/cglm/struct/clipspace/persp_rh_zo.h \
  209. include/cglm/struct/clipspace/ortho_lh_no.h \
  210. include/cglm/struct/clipspace/ortho_lh_zo.h \
  211. include/cglm/struct/clipspace/ortho_rh_no.h \
  212. include/cglm/struct/clipspace/ortho_rh_zo.h \
  213. include/cglm/struct/clipspace/view_lh_no.h \
  214. include/cglm/struct/clipspace/view_lh_zo.h \
  215. include/cglm/struct/clipspace/view_rh_no.h \
  216. include/cglm/struct/clipspace/view_rh_zo.h \
  217. include/cglm/struct/clipspace/project_no.h \
  218. include/cglm/struct/clipspace/project_zo.h
  219. cglm_struct_handeddir=$(includedir)/cglm/struct/handed
  220. cglm_struct_handed_HEADERS = include/cglm/struct/handed/euler_to_quat_lh.h \
  221. include/cglm/struct/handed/euler_to_quat_rh.h
  222. libcglm_la_SOURCES=\
  223. src/euler.c \
  224. src/affine.c \
  225. src/io.c \
  226. src/quat.c \
  227. src/cam.c \
  228. src/vec2.c \
  229. src/ivec2.c \
  230. src/vec3.c \
  231. src/ivec3.c \
  232. src/vec4.c \
  233. src/ivec4.c \
  234. src/mat2.c \
  235. src/mat2x3.c \
  236. src/mat2x4.c \
  237. src/mat3.c \
  238. src/mat3x2.c \
  239. src/mat3x4.c \
  240. src/mat4.c \
  241. src/mat4x2.c \
  242. src/mat4x3.c \
  243. src/plane.c \
  244. src/frustum.c \
  245. src/box.c \
  246. src/project.c \
  247. src/sphere.c \
  248. src/ease.c \
  249. src/curve.c \
  250. src/bezier.c \
  251. src/ray.c \
  252. src/affine2d.c \
  253. src/clipspace/ortho_lh_no.c \
  254. src/clipspace/ortho_lh_zo.c \
  255. src/clipspace/ortho_rh_no.c \
  256. src/clipspace/ortho_rh_zo.c \
  257. src/clipspace/persp_lh_no.c \
  258. src/clipspace/persp_lh_zo.c \
  259. src/clipspace/persp_rh_no.c \
  260. src/clipspace/persp_rh_zo.c \
  261. src/clipspace/view_lh_no.c \
  262. src/clipspace/view_lh_zo.c \
  263. src/clipspace/view_rh_no.c \
  264. src/clipspace/view_rh_zo.c \
  265. src/clipspace/project_no.c \
  266. src/clipspace/project_zo.c
  267. test_tests_SOURCES=\
  268. test/runner.c \
  269. test/src/test_common.c \
  270. test/src/tests.c \
  271. test/src/test_clamp.c \
  272. test/src/test_euler.c \
  273. test/src/test_bezier.c \
  274. test/src/test_struct.c
  275. pkgconfig_DATA=cglm.pc
  276. # When running configure with --prefix, $VPATH references
  277. # the source directory that post-build.sh is in. When not
  278. # using a prefix, $VPATH will be unset, so we need to fall
  279. # back to using . to run the script.
  280. #export VPATH
  281. # all-local:
  282. # sh $${VPATH:-.}/post-build.sh