#
#
# Makefile for HofTel package.
#
# SEH, 18 Sep 2001
#      14 Jan 2004, html doc + QSAS 2 version
#      05 May 2004, removed minvert.c dependence
#      07 Jul 2004, sync
#      19 Sep 2005, merged into QSAS release to replace earlier version
#

OBJS = CurlDivGrad_Calc.o 

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

all: clean new


CurlDivGrad_Calc.so:  $(OBJS)
	$(LD_PLUGIN) $(PIC_LD) $(PIC) -o CurlDivGrad_Calc.so $(OBJS) $(LDLIBS) 

clean: 
	'rm' -f  *.so *% *.o *~ *.dylib *.la
	'rm' -f Makefile

new: CurlDivGrad_Calc.so
	$(INSTALL)  CurlDivGrad_Calc.so $(QSAS_HOME)/lib  
	$(INSTALL)  CurlDivGrad_Calc.qtpl $(QSAS_HOME)/qtpl/ISSI_MPE
	$(INSTALL)  CurlDivGrad_Calc.html $(QSAS_HOME)/doc/QSAShelp/PlugIns


install:
	$(INSTALL)  CurlDivGrad_Calc.qtpl $(QSAS_HOME)/qtpl/Analysis
	$(INSTALL)  CurlDivGrad_Calc.html $(QSAS_HOME)/doc/QSAShelp/PlugIns
