# @(#)makefile	19.1 (ESO-IPG) 02/25/03 13:53:55
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/stdred/astro/lib/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "libastro.a" library.
#
# .REMARKS	
# .AUTHOR	Carlos Guirao
# .VERSION 1.1	930201:		Implementation

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

LIB = $(LIBDIR)/libastro.a

OBJ=ast_bgal.o      ast_ecl.o       ast_jgal.o      ast_trace.o    ast_trigoc.o\
    ast_bprec.o     ast_edq.o       ast_jprec.o     ast_traq.o     ast_trigod.o\
    ast_coos.o      ast_error.o     ast_project.o   ast_tratime.o  ast_trjd.o  \
    ast_cotr.o      ast_fk4fk5.o    ast_supergal.o  ast_trerror.o  ast_trtime.o

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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

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

clean:
	rm -f $(OBJ)
