# @(#)makefile	19.1 (ESO-IPG) 02/25/03 13:55:44
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/libsrc/mathlib/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates the dummy NAG library.
# .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)/libnag.a

OBJ =	dummynag.o 

# .for.f:
# 	rm -f $*.f
# 	cp $< $*.f
# .for.o:
# 	rm -f $*.f
# 	cp $< $*.f
# 	$(F77) $(FFLAGS) $*.f
# 	rm -f $*.f

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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

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

clean:
	rm -f $(OBJ)
	rm -f *.f
