CC	    = gcc
INCS        = -I. -I$(TCLTOOLS_HOME)/TclUtils/C-Code -I$(TCL_INCLUDE)
LBS         = -L. 
CADD        =
LD_FLAGS    =
LD	    =
CFLAGS      = $(INCS) $(LBS) $(CADD) $(CSO)
SO_EXT      =

ifeq "$(SO_EXT)" "dylib"
LIBS        = $(TCLTOOLS_HOME)/TclUtils/C-Code/tclutil.$(SO_EXT) -ltcl -lm

else

LIBS        = $(TCLTOOLS_HOME)/TclUtils/C-Code/tclutil.$(SO_EXT) -lm
endif

all:	tclfft.$(SO_EXT)

# Object files linked together into the shared lib

objects=Tclfft_Init.o \
	FfTCmd.o \
	FfTConvolveCmd.o \
	MxEntCCmd.o \
	MxEntPCmd.o \
	RealFfTCmd.o \
	TwoFfTCmd.o

tclfft.$(SO_EXT):	$(objects)
	$(LD) $(LD_FLAGS) -o $@ $(objects) $(LIBS)
