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        = -lm
LIBS        = $(TCLTOOLS_HOME)/TclUtils/C-Code/tclutil.$(SO_EXT) -ltcl -lm

else

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

all:	Tclmoments.$(SO_EXT)

# Object files linked together into the shared lib

objects=Tclmoments_Init.o \
	IntPhi.o \
	IntTh.o \
	IntVel.o \
	LinearElements.o \
	LinearIntPh.o \
	MassIntTh.o \
	MassIntVel.o \
	PhiDfImg.o \
	ThDfImg.o \
	VelDfImg.o

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