|
|
- #CXX ?= clang++
- #CXXFLAGS ?= -fsanitize=address -Werror -Wall -Wextra -g -O0 -DTINYEXR_USE_MINIZ=0 -DTINYEXR_USE_PIZ=0
- #LDFLAGS ?= -lz
-
- CC=clang
- CXX=clang++
-
- # ZFP
- #CXXFLAGS += -DTINYEXR_USE_ZFP=1 -I./deps/ZFP/inc
- #LDFLAGS += -L./deps/ZFP/lib -lzfp
-
- CXXFLAGS += -DTINYEXR_USE_MINIZ=1 -I./deps/miniz
- CFLAGS += -DTINYEXR_USE_MINIZ=1 -I./deps/miniz
-
- # miniz
- miniz.o:
- $(CC) $(CFLAGS) -c ./deps/miniz.c
- #
- all: miniz.o
- $(CXX) $(CXXFLAGS) -o test_tinyexr test_tinyexr.cc miniz.o $(LDFLAGS)
-
- test:
- ./test_tinyexr asakusa.exr
-
- .PHONY: test
|