2
0

Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. -Werror=strict-prototypes
  15. lib_LTLIBRARIES = libcglm.la
  16. libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
  17. checkLDFLAGS = -L./.libs \
  18. -lm \
  19. -lcglm
  20. checkCFLAGS = $(AM_CFLAGS) \
  21. -std=gnu11 \
  22. -O3 \
  23. -DCGLM_DEFINE_PRINTS \
  24. -I./include
  25. check_PROGRAMS = test/tests
  26. TESTS = $(check_PROGRAMS)
  27. test_tests_LDFLAGS = $(checkLDFLAGS)
  28. test_tests_CFLAGS = $(checkCFLAGS)
  29. cglmdir=$(includedir)/cglm
  30. cglm_HEADERS = include/cglm/version.h \
  31. include/cglm/common.h \
  32. include/cglm/types.h \
  33. include/cglm/types-struct.h \
  34. include/cglm/cglm.h \
  35. include/cglm/call.h \
  36. include/cglm/struct.h \
  37. include/cglm/cam.h \
  38. include/cglm/io.h \
  39. include/cglm/mat4.h \
  40. include/cglm/mat3.h \
  41. include/cglm/mat2.h \
  42. include/cglm/affine-pre.h \
  43. include/cglm/affine-post.h \
  44. include/cglm/affine.h \
  45. include/cglm/affine-mat.h \
  46. include/cglm/vec2.h \
  47. include/cglm/vec2-ext.h \
  48. include/cglm/ivec2.h \
  49. include/cglm/vec3.h \
  50. include/cglm/vec3-ext.h \
  51. include/cglm/ivec3.h \
  52. include/cglm/vec4.h \
  53. include/cglm/vec4-ext.h \
  54. include/cglm/ivec4.h \
  55. include/cglm/euler.h \
  56. include/cglm/util.h \
  57. include/cglm/quat.h \
  58. include/cglm/plane.h \
  59. include/cglm/frustum.h \
  60. include/cglm/box.h \
  61. include/cglm/color.h \
  62. include/cglm/project.h \
  63. include/cglm/sphere.h \
  64. include/cglm/ease.h \
  65. include/cglm/curve.h \
  66. include/cglm/bezier.h \
  67. include/cglm/applesimd.h \
  68. include/cglm/ray.h \
  69. include/cglm/affine2d.h
  70. cglm_clipspacedir=$(includedir)/cglm/clipspace
  71. cglm_clipspace_HEADERS = include/cglm/clipspace/persp.h \
  72. include/cglm/clipspace/persp_lh_no.h \
  73. include/cglm/clipspace/persp_lh_zo.h \
  74. include/cglm/clipspace/persp_rh_no.h \
  75. include/cglm/clipspace/persp_rh_zo.h \
  76. include/cglm/clipspace/ortho_lh_no.h \
  77. include/cglm/clipspace/ortho_lh_zo.h \
  78. include/cglm/clipspace/ortho_rh_no.h \
  79. include/cglm/clipspace/ortho_rh_zo.h \
  80. include/cglm/clipspace/view_lh.h \
  81. include/cglm/clipspace/view_rh.h \
  82. include/cglm/clipspace/view_lh_no.h \
  83. include/cglm/clipspace/view_lh_zo.h \
  84. include/cglm/clipspace/view_rh_no.h \
  85. include/cglm/clipspace/view_rh_zo.h \
  86. include/cglm/clipspace/project_no.h \
  87. include/cglm/clipspace/project_zo.h
  88. cglm_calldir=$(includedir)/cglm/call
  89. cglm_call_HEADERS = include/cglm/call/mat4.h \
  90. include/cglm/call/mat3.h \
  91. include/cglm/call/mat2.h \
  92. include/cglm/call/vec2.h \
  93. include/cglm/call/vec3.h \
  94. include/cglm/call/vec4.h \
  95. include/cglm/call/ivec2.h \
  96. include/cglm/call/ivec3.h \
  97. include/cglm/call/ivec4.h \
  98. include/cglm/call/io.h \
  99. include/cglm/call/cam.h \
  100. include/cglm/call/quat.h \
  101. include/cglm/call/euler.h \
  102. include/cglm/call/plane.h \
  103. include/cglm/call/frustum.h \
  104. include/cglm/call/box.h \
  105. include/cglm/call/project.h \
  106. include/cglm/call/sphere.h \
  107. include/cglm/call/ease.h \
  108. include/cglm/call/curve.h \
  109. include/cglm/call/bezier.h \
  110. include/cglm/call/ray.h \
  111. include/cglm/call/affine.h \
  112. include/cglm/call/affine2d.h
  113. cglm_call_clipspacedir=$(includedir)/cglm/call/clipspace
  114. cglm_call_clipspace_HEADERS = include/cglm/call/clipspace/persp_lh_no.h \
  115. include/cglm/call/clipspace/persp_lh_zo.h \
  116. include/cglm/call/clipspace/persp_rh_no.h \
  117. include/cglm/call/clipspace/persp_rh_zo.h \
  118. include/cglm/call/clipspace/ortho_lh_no.h \
  119. include/cglm/call/clipspace/ortho_lh_zo.h \
  120. include/cglm/call/clipspace/ortho_rh_no.h \
  121. include/cglm/call/clipspace/ortho_rh_zo.h \
  122. include/cglm/call/clipspace/view_lh_no.h \
  123. include/cglm/call/clipspace/view_lh_zo.h \
  124. include/cglm/call/clipspace/view_rh_no.h \
  125. include/cglm/call/clipspace/view_rh_zo.h \
  126. include/cglm/call/clipspace/project_no.h \
  127. include/cglm/call/clipspace/project_zo.h
  128. cglm_simddir=$(includedir)/cglm/simd
  129. cglm_simd_HEADERS = include/cglm/simd/intrin.h \
  130. include/cglm/simd/x86.h \
  131. include/cglm/simd/arm.h
  132. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  133. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  134. include/cglm/simd/sse2/mat4.h \
  135. include/cglm/simd/sse2/mat3.h \
  136. include/cglm/simd/sse2/mat2.h \
  137. include/cglm/simd/sse2/quat.h
  138. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  139. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  140. include/cglm/simd/avx/affine.h
  141. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  142. cglm_simd_neon_HEADERS = include/cglm/simd/neon/affine.h \
  143. include/cglm/simd/neon/mat2.h \
  144. include/cglm/simd/neon/mat4.h \
  145. include/cglm/simd/neon/quat.h
  146. cglm_structdir=$(includedir)/cglm/struct
  147. cglm_struct_HEADERS = include/cglm/struct/mat4.h \
  148. include/cglm/struct/mat3.h \
  149. include/cglm/struct/mat2.h \
  150. include/cglm/struct/affine-pre.h \
  151. include/cglm/struct/affine-post.h \
  152. include/cglm/struct/affine.h \
  153. include/cglm/struct/affine2d.h \
  154. include/cglm/struct/vec2.h \
  155. include/cglm/struct/vec2-ext.h \
  156. include/cglm/struct/vec3.h \
  157. include/cglm/struct/vec3-ext.h \
  158. include/cglm/struct/vec4.h \
  159. include/cglm/struct/vec4-ext.h \
  160. include/cglm/struct/io.h \
  161. include/cglm/struct/cam.h \
  162. include/cglm/struct/quat.h \
  163. include/cglm/struct/euler.h \
  164. include/cglm/struct/plane.h \
  165. include/cglm/struct/frustum.h \
  166. include/cglm/struct/box.h \
  167. include/cglm/struct/project.h \
  168. include/cglm/struct/sphere.h \
  169. include/cglm/struct/color.h \
  170. include/cglm/struct/curve.h
  171. cglm_struct_clipspacedir=$(includedir)/cglm/struct/clipspace
  172. cglm_struct_clipspace_HEADERS = include/cglm/struct/clipspace/persp_lh_no.h \
  173. include/cglm/struct/clipspace/persp_lh_zo.h \
  174. include/cglm/struct/clipspace/persp_rh_no.h \
  175. include/cglm/struct/clipspace/persp_rh_zo.h \
  176. include/cglm/struct/clipspace/ortho_lh_no.h \
  177. include/cglm/struct/clipspace/ortho_lh_zo.h \
  178. include/cglm/struct/clipspace/ortho_rh_no.h \
  179. include/cglm/struct/clipspace/ortho_rh_zo.h \
  180. include/cglm/struct/clipspace/view_lh_no.h \
  181. include/cglm/struct/clipspace/view_lh_zo.h \
  182. include/cglm/struct/clipspace/view_rh_no.h \
  183. include/cglm/struct/clipspace/view_rh_zo.h \
  184. include/cglm/struct/clipspace/project_no.h \
  185. include/cglm/struct/clipspace/project_zo.h
  186. libcglm_la_SOURCES=\
  187. src/euler.c \
  188. src/affine.c \
  189. src/io.c \
  190. src/quat.c \
  191. src/cam.c \
  192. src/vec2.c \
  193. src/ivec2.c \
  194. src/vec3.c \
  195. src/ivec3.c \
  196. src/vec4.c \
  197. src/ivec4.c \
  198. src/mat2.c \
  199. src/mat3.c \
  200. src/mat4.c \
  201. src/plane.c \
  202. src/frustum.c \
  203. src/box.c \
  204. src/project.c \
  205. src/sphere.c \
  206. src/ease.c \
  207. src/curve.c \
  208. src/bezier.c \
  209. src/ray.c \
  210. src/affine2d.c \
  211. src/clipspace/ortho_lh_no.c \
  212. src/clipspace/ortho_lh_zo.c \
  213. src/clipspace/ortho_rh_no.c \
  214. src/clipspace/ortho_rh_zo.c \
  215. src/clipspace/persp_lh_no.c \
  216. src/clipspace/persp_lh_zo.c \
  217. src/clipspace/persp_rh_no.c \
  218. src/clipspace/persp_rh_zo.c \
  219. src/clipspace/view_lh_no.c \
  220. src/clipspace/view_lh_zo.c \
  221. src/clipspace/view_rh_no.c \
  222. src/clipspace/view_rh_zo.c \
  223. src/clipspace/project_no.c \
  224. src/clipspace/project_zo.c
  225. test_tests_SOURCES=\
  226. test/runner.c \
  227. test/src/test_common.c \
  228. test/src/tests.c \
  229. test/src/test_cam.c \
  230. test/src/test_cam_lh_zo.c \
  231. test/src/test_cam_rh_zo.c \
  232. test/src/test_cam_lh_no.c \
  233. test/src/test_cam_rh_no.c \
  234. test/src/test_clamp.c \
  235. test/src/test_euler.c \
  236. test/src/test_bezier.c \
  237. test/src/test_struct.c
  238. pkgconfig_DATA=cglm.pc
  239. # When running configure with --prefix, $VPATH references
  240. # the source directory that post-build.sh is in. When not
  241. # using a prefix, $VPATH will be unset, so we need to fall
  242. # back to using . to run the script.
  243. #export VPATH
  244. # all-local:
  245. # sh $${VPATH:-.}/post-build.sh