mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-12-28 15:44:33 +00:00
* SSEd HMM_MultiplyMat4 and HMM_Transpose. And added HMM_LinearCombineSSE
* Maybe Travis doesn't support SSE?
* Fix compile process so the SSE option is consistently defined
* Fix link error
* Documentation
* Added function prototype for operator ==
* Added != operator for hmm_vec2, hmm_vec3, hmm_vec4
* Add C versions of equality checks
Also made the C++ tests actually run...😳
* Update documentation
38 lines
1.3 KiB
Makefile
38 lines
1.3 KiB
Makefile
ROOT_DIR=..
|
|
|
|
CXXFLAGS+=-g -Wall -Wextra -pthread -Wno-missing-braces -Wno-missing-field-initializers
|
|
|
|
all: c c_no_sse cpp cpp_no_sse
|
|
|
|
clean:
|
|
rm -f hmm_test_c hmm_test_cpp hmm_test_c_no_sse hmm_test_cpp_no_sse *.o
|
|
|
|
c: $(ROOT_DIR)/test/HandmadeMath.c test_impl
|
|
@echo "\nCompiling in C mode"
|
|
$(CC) $(CPPFLAGS) $(CXXFLAGS) -std=c99 \
|
|
-c $(ROOT_DIR)/test/HandmadeMath.c $(ROOT_DIR)/test/hmm_test.c \
|
|
-lm
|
|
$(CC) -ohmm_test_c HandmadeMath.o hmm_test.o -lm
|
|
|
|
c_no_sse: $(ROOT_DIR)/test/HandmadeMath.c test_impl
|
|
@echo "\nCompiling in C mode (no SSE)"
|
|
$(CC) $(CPPFLAGS) $(CXXFLAGS) -std=c99 \
|
|
-DHANDMADE_MATH_NO_SSE \
|
|
-c $(ROOT_DIR)/test/HandmadeMath.c $(ROOT_DIR)/test/hmm_test.c \
|
|
-lm
|
|
$(CC) -ohmm_test_c_no_sse HandmadeMath.o hmm_test.o -lm
|
|
|
|
cpp: $(ROOT_DIR)/test/HandmadeMath.cpp test_impl
|
|
@echo "\nCompiling in C++ mode"
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -ohmm_test_cpp \
|
|
-DHANDMADE_MATH_CPP_MODE \
|
|
$(ROOT_DIR)/test/HandmadeMath.cpp $(ROOT_DIR)/test/hmm_test.cpp
|
|
|
|
cpp_no_sse: $(ROOT_DIR)/test/HandmadeMath.cpp test_impl
|
|
@echo "\nCompiling in C++ mode (no SSE)"
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -ohmm_test_cpp_no_sse \
|
|
-DHANDMADE_MATH_CPP_MODE -DHANDMADE_MATH_NO_SSE \
|
|
$(ROOT_DIR)/test/HandmadeMath.cpp $(ROOT_DIR)/test/hmm_test.cpp
|
|
|
|
test_impl: $(ROOT_DIR)/test/hmm_test.cpp $(ROOT_DIR)/test/hmm_test.c
|