Sean Barrett 8 years ago
parent
commit
cf6d17cd74
1 changed files with 6 additions and 4 deletions
  1. 6 4
      tests/Makefile

+ 6 - 4
tests/Makefile

@@ -1,7 +1,9 @@
+INCLUDE = -I..
+
 32:
-	$(CC) -m32 -I.. ../stb_vorbis.c test_c_compilation.c
-	$(CC) -m32 -I.. ../stb_vorbis.c test_cpp_compilation.cpp
+	$(CC) -m32 $(INCLUDE) ../stb_vorbis.c test_c_compilation.c -lm
+	$(CC) -m32 $(INCLUDE) ../stb_vorbis.c test_cpp_compilation.cpp -lm
 
 64:
-	$(CC) -m64 -I.. ../stb_vorbis.c test_c_compilation.c
-	$(CC) -m64 -I.. ../stb_vorbis.c test_cpp_compilation.cpp
+	$(CC) -m64 $(INCLUDE) ../stb_vorbis.c test_c_compilation.c -lm
+	$(CC) -m64 $(INCLUDE) ../stb_vorbis.c test_cpp_compilation.cpp -lm