diff --git a/.travis.yml b/.travis.yml index 1e4303d..e0dd6ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,4 @@ language: C install: true script: - cd tests - - make 32 - make 64 diff --git a/tests/Makefile b/tests/Makefile index 412cb10..ace27c8 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,9 +1,10 @@ INCLUDE = -I.. +DEFINES = -DSTB_C_LEXER_SELF_TEST 32: - $(CC) -m32 $(INCLUDE) ../stb_vorbis.c test_c_compilation.c -lm - $(CC) -m32 $(INCLUDE) ../stb_vorbis.c test_cpp_compilation.cpp -lm + $(CC) -m32 $(INCLUDE) $(DEFINES) ../stb_vorbis.c test_c_compilation.c ../stb.c -lm + $(CC) -m32 $(INCLUDE) $(DEFINES) ../stb_vorbis.c test_cpp_compilation.cpp -lm 64: - $(CC) -m64 $(INCLUDE) ../stb_vorbis.c test_c_compilation.c -lm - $(CC) -m64 $(INCLUDE) ../stb_vorbis.c test_cpp_compilation.cpp -lm + $(CC) -m64 $(INCLUDE) $(DEFINES) ../stb_vorbis.c test_c_compilation.c ../stb.c -lm + $(CC) -m64 $(INCLUDE) $(DEFINES) ../stb_vorbis.c test_cpp_compilation.cpp -lm