makefile.am 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. cglm_calldir=$(includedir)/cglm/call
  55. cglm_call_HEADERS = include/cglm/call/mat4.h \
  56. include/cglm/call/mat3.h \
  57. include/cglm/call/vec3.h \
  58. include/cglm/call/vec4.h \
  59. include/cglm/call/affine.h \
  60. include/cglm/call/io.h \
  61. include/cglm/call/cam.h \
  62. include/cglm/call/quat.h \
  63. include/cglm/call/euler.h \
  64. include/cglm/call/plane.h \
  65. include/cglm/call/frustum.h \
  66. include/cglm/call/box.h \
  67. include/cglm/call/project.h \
  68. include/cglm/call/sphere.h \
  69. include/cglm/call/ease.h
  70. cglm_simddir=$(includedir)/cglm/simd
  71. cglm_simd_HEADERS = include/cglm/simd/intrin.h
  72. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  73. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  74. include/cglm/simd/sse2/mat4.h \
  75. include/cglm/simd/sse2/mat3.h \
  76. include/cglm/simd/sse2/quat.h
  77. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  78. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  79. include/cglm/simd/avx/affine.h
  80. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  81. cglm_simd_neon_HEADERS = include/cglm/simd/neon/mat4.h
  82. libcglm_la_SOURCES=\
  83. src/euler.c \
  84. src/affine.c \
  85. src/io.c \
  86. src/quat.c \
  87. src/cam.c \
  88. src/vec3.c \
  89. src/vec4.c \
  90. src/mat3.c \
  91. src/mat4.c \
  92. src/plane.c \
  93. src/frustum.c \
  94. src/box.c \
  95. src/project.c \
  96. src/sphere.c \
  97. src/ease.c
  98. test_tests_SOURCES=\
  99. test/src/test_common.c \
  100. test/src/test_main.c \
  101. test/src/test_mat4.c \
  102. test/src/test_cam.c \
  103. test/src/test_project.c \
  104. test/src/test_clamp.c \
  105. test/src/test_euler.c \
  106. test/src/test_quat.c \
  107. test/src/test_vec4.c \
  108. test/src/test_vec3.c \
  109. test/src/test_mat3.c \
  110. test/src/test_affine.c
  111. all-local:
  112. sh ./post-build.sh