# @(#)makefile	19.1 (ESO-IPG) 02/25/03 13:21:31
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/applic/general/src/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "general" commands
#
# .REMARKS	
# .AUTHOR	
# .VERSION 1.1	891112:		Implementation
# .VERSION 2.1  901102:         new directory structure CG.
# .VERSION 3.0  930308:		Using default.mk file

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

M = ../../exec

LLIB = -L$(LIBDIR) -lftab -lmidas
LIBS =	$(LIBDIR)/libftab.a \
	$(LIBDIR)/libmidas.a 

OUT =	$(M)/bintabl.exe

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

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

$(M)/bintabl.exe: bintabl.o $(LIBS)
	$(LD77) bintabl.o $(LLIB) $(SLIB) -o $@
	$(STRIP) $@

clean:
	rm -f *.o
	rm -f *.f

clean_exec:
	rm -f $(OUT)
