# @(#)makefile	19.1 (ESO-IPG) 02/25/03 13:32:58
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#				all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/contrib/mva/lib/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "tsalib.a" library.
#
# .REMARKS
#
# .AUTHOR	M.P.
# .VERSION 1.1	920921:		Implementation 
# .VERSION 3.0  930308:		Using default.mk file

include ../../../local/default.mk

LIB = $(LLIBDIR)/libtsa.a
LIB1 = $(LLIBDIR)/libtsausr.a

OBJ0 =	  acf.o cracow.o inpcpy.o interpol.o lench.o sort.o\
	  timdft.o riembi.o rbfrac.o gamlog.o  
OBJ1 =    tsadelur0.o tsadelur1.o tsadelur2.o tsadelur3.o\
          tsadelur4.o tsadelur5.o tsadelur6.o tsadelur7.o\
          tsadelur8.o tsadelur9.o 

# DEPENDENCIES:
all: $(MAKEFILE_VMS) $(LIB) $(LIB1)

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

$(LIB): $(OBJ0)   
	$(AR) $(AR_OPT) $(LIB) $(OBJ0)
	$(RANLIB) $(LIB)

$(LIB1): $(OBJ1)
	$(AR) $(AR_OPT) $(LIB1) $(OBJ1)
	$(RANLIB) $(LIB1)
clean:
	rm -f $(OBJ0)
	rm -f $(OBJ1)
	rm -f *.f
