# @(#)makefile	16.1.1.1 (ESO-IPG) 06/19/01 15:17:19
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/libsrc/math/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates the library libmidmath.a 
# .REMARKS
#
# .AUTHOR	Carlos Guirao
# .VERSION 1.1	901131:		Implementation
# .VERSION 2.1  901203:         New directory structure. CG
# .VERSION 3.0  930308:		Using default.mk file

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

LIB = $(LIBDIR)/libmidmath.a

OBJ0 =  rebu01.o
OBJ1 =  covsrt.o        indexx.o        ran3.o          sort.o \
	gaussj.o        mrqfit.o        randev.o


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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

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

clean:
	rm -f $(OBJ0) $(OBJ1)
	rm -f *.f
