Sean Barrett 8 年之前
父节点
当前提交
cf6d17cd74
共有 1 个文件被更改,包括 6 次插入4 次删除
  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