# @(#)makefile	19.1 (ESO-IPG) 02/25/03 14:32:27
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/system/vms/tapeio
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "" commands
#
# .REMARKS	
# .AUTHOR	Carlos Guirao.
# .VERSION 1.1	891008:			Implementation
# .VERSION 3.0  930308:		Using default.mk file

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

M = ../../../exec

OUT =	$(M)/rtape.exe $(M)/wtape.exe

OBJ=	dclist.o iodev.o

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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

rtape.o: rtape.for
wtape.o: wtape.for

$(M)/rtape.exe: rtape.o $(OBJ) 
	$(LD77) rtape.o $(OBJ) -o $@
	$(STRIP) $@

$(M)/wtape.exe: wtape.o $(OBJ) 
	$(LD77) wtape.o $(OBJ) -o $@
	$(STRIP) $@

clean:
	rm -f *.o *.f
