2
0

makefile.am 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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=gnu99 \
  11. -O3 \
  12. -Wstrict-aliasing=2 \
  13. -fstrict-aliasing \
  14. -pedantic
  15. lib_LTLIBRARIES = libcglm.la
  16. libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
  17. checkLDFLAGS = -L./.libs \
  18. -L./test/lib/cmocka/build/src \
  19. -lcmocka \
  20. -lm \
  21. -lcglm
  22. checkCFLAGS = -I./test/lib/cmocka/include \
  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/cglm.h \
  31. include/cglm/call.h \
  32. include/cglm/cam.h \
  33. include/cglm/io.h \
  34. include/cglm/mat4.h \
  35. include/cglm/mat3.h \
  36. include/cglm/types.h \
  37. include/cglm/common.h \
  38. include/cglm/affine.h \
  39. include/cglm/vec3.h \
  40. include/cglm/vec3-ext.h \
  41. include/cglm/vec4.h \
  42. include/cglm/vec4-ext.h \
  43. include/cglm/euler.h \
  44. include/cglm/util.h \
  45. include/cglm/quat.h \
  46. include/cglm/affine-mat.h \
  47. include/cglm/plane.h \
  48. include/cglm/frustum.h \
  49. include/cglm/box.h \
  50. include/cglm/color.h \
  51. include/cglm/project.h \
  52. include/cglm/sphere.h \
  53. include/cglm/ease.h \
  54. include/cglm/curve.h \
  55. include/cglm/bezier.h
  56. cglm_calldir=$(includedir)/cglm/call
  57. cglm_call_HEADERS = include/cglm/call/mat4.h \
  58. include/cglm/call/mat3.h \
  59. include/cglm/call/vec3.h \
  60. include/cglm/call/vec4.h \
  61. include/cglm/call/affine.h \
  62. include/cglm/call/io.h \
  63. include/cglm/call/cam.h \
  64. include/cglm/call/quat.h \
  65. include/cglm/call/euler.h \
  66. include/cglm/call/plane.h \
  67. include/cglm/call/frustum.h \
  68. include/cglm/call/box.h \
  69. include/cglm/call/project.h \
  70. include/cglm/call/sphere.h \
  71. include/cglm/call/ease.h \
  72. include/cglm/call/curve.h \
  73. include/cglm/call/bezier.h
  74. cglm_simddir=$(includedir)/cglm/simd
  75. cglm_simd_HEADERS = include/cglm/simd/intrin.h \
  76. include/cglm/simd/x86.h \
  77. include/cglm/simd/arm.h
  78. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  79. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  80. include/cglm/simd/sse2/mat4.h \
  81. include/cglm/simd/sse2/mat3.h \
  82. include/cglm/simd/sse2/quat.h
  83. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  84. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  85. include/cglm/simd/avx/affine.h
  86. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  87. cglm_simd_neon_HEADERS = include/cglm/simd/neon/mat4.h
  88. libcglm_la_SOURCES=\
  89. src/euler.c \
  90. src/affine.c \
  91. src/io.c \
  92. src/quat.c \
  93. src/cam.c \
  94. src/vec3.c \
  95. src/vec4.c \
  96. src/mat3.c \
  97. src/mat4.c \
  98. src/plane.c \
  99. src/frustum.c \
  100. src/box.c \
  101. src/project.c \
  102. src/sphere.c \
  103. src/ease.c \
  104. src/curve.c \
  105. src/bezier.c
  106. test_tests_SOURCES=\
  107. test/src/test_common.c \
  108. test/src/test_main.c \
  109. test/src/test_mat4.c \
  110. test/src/test_cam.c \
  111. test/src/test_project.c \
  112. test/src/test_clamp.c \
  113. test/src/test_euler.c \
  114. test/src/test_quat.c \
  115. test/src/test_vec4.c \
  116. test/src/test_vec3.c \
  117. test/src/test_mat3.c \
  118. test/src/test_affine.c \
  119. test/src/test_bezier.c
  120. all-local:
  121. sh ./post-build.sh