@SET_MAKE@

AUTOMAKE_OPTIONS = foreign no-dependencies
ACLOCAL_AMFLAGS = -I ../../m4

# Disable usage checking
OCCBUILD = @OCCBUILD@ --occ21-opts '-NU'

EXTRA_DIST = \
	fft2.occ \
	fft2-nosched.occ \
	fft2-base.occ \
	fft3.occ \
	mandelbrot.occ

if BUILD_BENCHMARKS
benchmarks = \
	fft2 \
	fft2-noresched \
	fft3 \
	mandelbrot
endif

all-local: $(benchmarks)

install-exec-local: $(benchmarks)
	$(OCCBUILD) --install-examples occbench --prefix "$(prefix)" --destdir "$(DESTDIR)" $(benchmarks)

clean-local:
	$(OCCBUILD) --clean $(benchmarks)

SUFFIXES = .occ

.occ:
	$(OCCBUILD) --program $<
