include ../support/Makefile.inc CXXFLAGS += -g -Wall .PHONY: build clean test ifeq ($(WITH_FFTW),1) CXXFLAGS += -DWITH_FFTW LDFLAGS += -lfftw3f endif # Use a small stack, to stress out the compiler and act as a canary # for stack bloat problems. This can be accomplished with a linker # flag on os x, and testing this on one platform is sufficient. UNAME = $(shell uname) ifeq ($(UNAME), Darwin) LDFLAGS += -Wl,-stack_size -Wl,0x100000 endif build: $(BIN)/$(HL_TARGET)/bench_fft $(BIN)/%/bench_fft: main.cpp fft.cpp fft.h complex.h funct.h $(LIB_HALIDE) @mkdir -p $(@D) $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LIBHALIDE_LDFLAGS) bench_8x8: $(BIN)/$(HL_TARGET)/bench_fft $< 8 8 $(