Makefile.am 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. -pedantic \
  15. -Werror=strict-prototypes
  16. lib_LTLIBRARIES = libcglm.la
  17. libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
  18. checkLDFLAGS = -L./.libs \
  19. -lm \
  20. -lcglm
  21. checkCFLAGS = $(AM_CFLAGS) \
  22. -I./include
  23. check_PROGRAMS = test/tests
  24. TESTS = $(check_PROGRAMS)
  25. test_tests_LDFLAGS = $(checkLDFLAGS)
  26. test_tests_CFLAGS = $(checkCFLAGS)
  27. cglmdir=$(includedir)/cglm
  28. cglm_HEADERS = include/cglm/version.h \
  29. include/cglm/common.h \
  30. include/cglm/types.h \
  31. include/cglm/types-struct.h \
  32. include/cglm/cglm.h \
  33. include/cglm/call.h \
  34. include/cglm/struct.h \
  35. include/cglm/cam.h \
  36. include/cglm/io.h \
  37. include/cglm/mat4.h \
  38. include/cglm/mat3.h \
  39. include/cglm/mat2.h \
  40. include/cglm/affine.h \
  41. include/cglm/vec2.h \
  42. include/cglm/vec2-ext.h \
  43. include/cglm/vec3.h \
  44. include/cglm/vec3-ext.h \
  45. include/cglm/vec4.h \
  46. include/cglm/vec4-ext.h \
  47. include/cglm/euler.h \
  48. include/cglm/util.h \
  49. include/cglm/quat.h \
  50. include/cglm/affine-mat.h \
  51. include/cglm/plane.h \
  52. include/cglm/frustum.h \
  53. include/cglm/box.h \
  54. include/cglm/color.h \
  55. include/cglm/project.h \
  56. include/cglm/sphere.h \
  57. include/cglm/ease.h \
  58. include/cglm/curve.h \
  59. include/cglm/bezier.h \
  60. include/cglm/applesimd.h
  61. cglm_calldir=$(includedir)/cglm/call
  62. cglm_call_HEADERS = include/cglm/call/mat4.h \
  63. include/cglm/call/mat3.h \
  64. include/cglm/call/mat2.h \
  65. include/cglm/call/vec2.h \
  66. include/cglm/call/vec3.h \
  67. include/cglm/call/vec4.h \
  68. include/cglm/call/affine.h \
  69. include/cglm/call/io.h \
  70. include/cglm/call/cam.h \
  71. include/cglm/call/quat.h \
  72. include/cglm/call/euler.h \
  73. include/cglm/call/plane.h \
  74. include/cglm/call/frustum.h \
  75. include/cglm/call/box.h \
  76. include/cglm/call/project.h \
  77. include/cglm/call/sphere.h \
  78. include/cglm/call/ease.h \
  79. include/cglm/call/curve.h \
  80. include/cglm/call/bezier.h
  81. cglm_simddir=$(includedir)/cglm/simd
  82. cglm_simd_HEADERS = include/cglm/simd/intrin.h \
  83. include/cglm/simd/x86.h \
  84. include/cglm/simd/arm.h
  85. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  86. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  87. include/cglm/simd/sse2/mat4.h \
  88. include/cglm/simd/sse2/mat3.h \
  89. include/cglm/simd/sse2/quat.h
  90. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  91. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  92. include/cglm/simd/avx/affine.h
  93. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  94. cglm_simd_neon_HEADERS = include/cglm/simd/neon/mat4.h
  95. cglm_structdir=$(includedir)/cglm/struct
  96. cglm_struct_HEADERS = include/cglm/struct/mat4.h \
  97. include/cglm/struct/mat3.h \
  98. include/cglm/struct/vec2.h \
  99. include/cglm/struct/vec2-ext.h \
  100. include/cglm/struct/vec3.h \
  101. include/cglm/struct/vec3-ext.h \
  102. include/cglm/struct/vec4.h \
  103. include/cglm/struct/vec4-ext.h \
  104. include/cglm/struct/affine.h \
  105. include/cglm/struct/io.h \
  106. include/cglm/struct/cam.h \
  107. include/cglm/struct/quat.h \
  108. include/cglm/struct/euler.h \
  109. include/cglm/struct/plane.h \
  110. include/cglm/struct/frustum.h \
  111. include/cglm/struct/box.h \
  112. include/cglm/struct/project.h \
  113. include/cglm/struct/sphere.h \
  114. include/cglm/struct/color.h \
  115. include/cglm/struct/curve.h
  116. libcglm_la_SOURCES=\
  117. src/euler.c \
  118. src/affine.c \
  119. src/io.c \
  120. src/quat.c \
  121. src/cam.c \
  122. src/vec2.c \
  123. src/vec3.c \
  124. src/vec4.c \
  125. src/mat2.c \
  126. src/mat3.c \
  127. src/mat4.c \
  128. src/plane.c \
  129. src/frustum.c \
  130. src/box.c \
  131. src/project.c \
  132. src/sphere.c \
  133. src/ease.c \
  134. src/curve.c \
  135. src/bezier.c
  136. test_tests_SOURCES=\
  137. test/runner.c \
  138. test/src/test_common.c \
  139. test/src/tests.c \
  140. test/src/test_cam.c \
  141. test/src/test_clamp.c \
  142. test/src/test_euler.c \
  143. test/src/test_bezier.c \
  144. test/src/test_struct.c
  145. pkgconfig_DATA=cglm.pc
  146. # When running configure with --prefix, $VPATH references
  147. # the source directory that post-build.sh is in. When not
  148. # using a prefix, $VPATH will be unset, so we need to fall
  149. # back to using . to run the script.
  150. #export VPATH
  151. # all-local:
  152. # sh $${VPATH:-.}/post-build.sh