#
#  Makefile for fastfft lib
#   for Pentium/Linux
#   by Scott M. Ransom
#     V 1.0, 10Jul97
#
#CC = checkergcc
CC = gcc

CFLAGS = -Wall -fpic
# uncomment to degug
#CFLAGS += -g
# uncomment for profiling
#CFLAGS += -pg
# uncomment to optimize old compiler
CFLAGS += -O -ffast-math -m486 -malign-loops=2 -malign-jumps=2\
	-malign-functions=2 -fno-strength-reduce

OBJS = fastffts.o twopass.o twopass_real_fwd.o twopass_real_inv.o chkio.o

FASTFFTS = libfastffts.so

all:  meminit $(FASTFFTS)

meminit:
	@echo ""
	@echo "Building meminit"
	@echo ""
	@${CC} -o $@ meminit.c
	@echo "You can adjust machine specific memory parameters"
	@echo "by running 'meminit'.  The default values in meminit.h"
	@echo "should run fine on most modern machines."
	@echo ""

$(FASTFFTS): $(OBJS)
	@echo ""
	@echo "Building libfastffts.so"
	@echo ""
	@gcc -shared ${CFLAGS} -o $@ $(OBJS)
	@echo "Done."
	@echo ""

clean:
	rm -f *.o $(FASTFFTS) meminit *~ *#














