# GNUmakefile          Section: 8.5, Walsh Transform
#      Copyright 1994, Center for Computer Vision and Visualization,
#      University of Florida.  All rights reserved.
#
# See comments in  gnumake.iah for description of symbols.

#######################################################################
# Modify the following symbols to control compilation
#######################################################################

BLASTABLE_PTFILES	=
CLOSUREOBJS		=

HEADERS	= walsh.h
LOBJS	= walsh-nd.o

SOURCES	= walsh.h walsh-nd.c test-walsh.c
TESTS	= test-walsh

ARL		=
EXTRAINCLUDES	=
CPPFLAGS	=

OUTPUT_OPTION	=
TARGET_ARCH	=
XTRAFLAGS	=
XTRACCFLAGS	=

# Make this nothing if you do not want programs stripped.
STRIPPROGRAMS = anystring-means-strip--no-string-means-do-not-strip

#######################################################################
include ../../gnumake.iah
#######################################################################

#######################################################################
#####	User program dependencies and rules follow
#######################################################################

ifeq (${LIBTEST},)

# Non-iterative verison

walsh-nd.o:	walsh.h  walsh-nd.c

test-walsh:  test-walsh.o  walsh-nd.o
	$(LINK.cc) -o $@ $@.o walsh-nd.o $(LDLIBS)
	strip $@

# NOTE: I have not created the iterative version of the
#     	walsh.c yet, but it should be based on the fft-nd-iter.c code.
#

#walsh-nd-iter.o:	walsh.h  walsh-nd-iter.c

#test-walsh-iter:  test-walsh.o  walsh-nd-iter.o
#	$(LINK.cc) -o $@  test-walsh.o walsh-nd-iter.o $(LDLIBS)
#	strip $@

else

test-walsh.o:	test-walsh.c

endif
