# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/libsrc/idi/cidi/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "libsubmid.a" library.
# .REMARKS	This makefile must not be used to generate makefile.com
# .AUTHOR	Carlos Guirao
# .VERSION 1.1	880831:		Implementation
# .VERSION 2.1	901203:		New directory structure. CG
# 
# 030704	last modif
# 

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

LIB = $(LIBDIR)/libsubmid.a

OBJ0 =	iic.o iid.o iig.o iii.o iil.o iim.o iir.o

OBJ1 =	yiid.o yiic.o yiig.o yiii.o yiim.o yiir.o

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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

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

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