#
#
# Makefile for TensorDiag package.
#
# SEH, 08 Jan 2014


OBJS = TensorDiag.o 
FILES = \
TensorDiag.cc \
TensorDiag.html \
TensorDiag.qtpl \
Makefile 

.f.o:
	$(CC) -c $*.f
.cc.o:
	$(CPL) $(CPLFLAGS) $(PIC) -c $*.cc 
.c.o:
	$(CC) $(CFLAGS)  $(PIC) -c $*.c 

all: clean new


TensorDiag.so: $(OBJS)
	$(LD) $(PIC_LD) $(PIC) -o TensorDiag.so $(OBJS) $(LDLIBS) 

clean: 
	'rm' -f  *.so *%

gzip:
	'tar' czvf TensorDiag.tgz $(FILES) 


new: TensorDiag.so
#	$(STRIP)  TensorDiag TensorDiag 
	$(INSTALL)  TensorDiag.so $(QSAS_HOME)/lib
	$(INSTALL)  TensorDiag.qtpl $(QSAS_HOME)/qtpl/Analysis/TensorDiag.qtpl  
#	$(SETVER)  TensorDiag.html $(QSAS_HOME)/doc/html/PlugIns/TensorDiag.html
#	play -d /dev/dsp /usr/share/sounds/KDE_Notify.wav


install:	
	$(INSTALL)  TensorDiag.so $(QSAS_HOME)/lib
	$(INSTALL)  TensorDiag.qtpl $(QSAS_HOME)/qtpl/Analysis/TensorDiag.qtpl  
#	$(SETVER)  TensorDiag.html $(QSAS_HOME)/doc/html/PlugIns/TensorDiag.html
#	play -d /dev/dsp /usr/share/sounds/KDE_Notify.wav
