Makefile 436 Bytes
# Makefile for fft

# libraries in required order (compiled in the order)
LIBS=bsp m softfloat ins bsp ins

TABLE_SIZE?=10
BLOCKSIZES?=1,2,4,8,16,30

# C sources
SOURCES=fft-run.c

HEADERS=tables/fft_table2_$(TABLE_SIZE)_data.h

tables/fft_table2_$(TABLE_SIZE)_data.h: gen_table_2.sh FORCE
	mkdir -p tables
	$(SHELL) -c "env TABLE_SIZE=$(TABLE_SIZE) ./$<" >$@.tmp || rm -f $@.tmp
	mv -f $@.tmp $@

FORCE:

include $(TOP)/Makefile.rules