makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. cglm_calldir=$(includedir)/cglm/call
  52. cglm_call_HEADERS = include/cglm/call/mat4.h \
  53. include/cglm/call/mat3.h \
  54. include/cglm/call/vec3.h \
  55. include/cglm/call/vec4.h \
  56. include/cglm/call/affine.h \
  57. include/cglm/call/io.h \
  58. include/cglm/call/cam.h \
  59. include/cglm/call/quat.h \
  60. include/cglm/call/euler.h \
  61. include/cglm/call/plane.h \
  62. include/cglm/call/frustum.h \
  63. include/cglm/call/box.h
  64. cglm_simddir=$(includedir)/cglm/simd
  65. cglm_simd_HEADERS = include/cglm/simd/intrin.h
  66. cglm_simd_sse2dir=$(includedir)/cglm/simd/sse2
  67. cglm_simd_sse2_HEADERS = include/cglm/simd/sse2/affine.h \
  68. include/cglm/simd/sse2/mat4.h \
  69. include/cglm/simd/sse2/mat3.h \
  70. include/cglm/simd/sse2/quat.h
  71. cglm_simd_avxdir=$(includedir)/cglm/simd/avx
  72. cglm_simd_avx_HEADERS = include/cglm/simd/avx/mat4.h \
  73. include/cglm/simd/avx/affine.h
  74. cglm_simd_neondir=$(includedir)/cglm/simd/neon
  75. cglm_simd_neon_HEADERS = include/cglm/simd/neon/mat4.h
  76. libcglm_la_SOURCES=\
  77. src/euler.c \
  78. src/affine.c \
  79. src/io.c \
  80. src/quat.c \
  81. src/cam.c \
  82. src/vec3.c \
  83. src/vec4.c \
  84. src/mat3.c \
  85. src/mat4.c \
  86. src/plane.c \
  87. src/frustum.c \
  88. src/box.c
  89. test_tests_SOURCES=\
  90. test/src/test_common.c \
  91. test/src/test_main.c \
  92. test/src/test_mat4.c \
  93. test/src/test_cam.c
  94. all-local:
  95. sh ./post-build.sh