🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
535 B

  1. #CXX ?= clang++
  2. #CXXFLAGS ?= -fsanitize=address -Werror -Wall -Wextra -g -O0 -DTINYEXR_USE_MINIZ=0 -DTINYEXR_USE_PIZ=0
  3. #LDFLAGS ?= -lz
  4. CC=clang
  5. CXX=clang++
  6. # ZFP
  7. #CXXFLAGS += -DTINYEXR_USE_ZFP=1 -I./deps/ZFP/inc
  8. #LDFLAGS += -L./deps/ZFP/lib -lzfp
  9. CXXFLAGS += -DTINYEXR_USE_MINIZ=1 -I./deps/miniz
  10. CFLAGS += -DTINYEXR_USE_MINIZ=1 -I./deps/miniz
  11. # miniz
  12. miniz.o:
  13. $(CC) $(CFLAGS) -c ./deps/miniz.c
  14. #
  15. all: miniz.o
  16. $(CXX) $(CXXFLAGS) -o test_tinyexr test_tinyexr.cc miniz.o $(LDFLAGS)
  17. test:
  18. ./test_tinyexr asakusa.exr
  19. .PHONY: test