Makefile 697 B

123456789101112
  1. INCLUDES = -I..
  2. CFLAGS = -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -DSTB_DIVIDE_TEST
  3. CPPFLAGS = -Wno-write-strings -DSTB_DIVIDE_TEST
  4. # Uncomment this line for reproducing OSS-Fuzz bugs with image_fuzzer
  5. #CFLAGS += -O -fsanitize=address
  6. all:
  7. $(CC) $(INCLUDES) $(CFLAGS) ../stb_vorbis.c test_c_compilation.c test_c_lexer.c test_dxt.c test_easyfont.c test_image.c test_image_write.c test_perlin.c test_sprintf.c test_truetype.c test_voxel.c -lm
  8. $(CC) $(INCLUDES) $(CPPFLAGS) -std=c++0x test_cpp_compilation.cpp -lm -lstdc++
  9. $(CC) $(INCLUDES) $(CFLAGS) -DIWT_TEST image_write_test.c -lm -o image_write_test
  10. $(CC) $(INCLUDES) $(CFLAGS) fuzz_main.c stbi_read_fuzzer.c -lm -o image_fuzzer