# .COPYRIGHT:	Copyright (c) 1988-2011 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/system/ext//makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "esoext" command.
#
# .REMARKS
# .AUTHOR	C. Guirao
# .VERSION 1.1	880831:		Implementation
# .VERSION 3.0  930308:		Using default.mk file
# 
# 111028	last modif

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

# Optimizer removed. OSF/1 had problems with -O in the romafot package.
C_OPT = $(K_OPT)

M = ../exec

OUT = $(M)/esoext.exe

OBJ = esoext.o getline.o linetype.o idtbl.o lidtbl.o f77utl.o \
	extutl.o putline.o

# DEPENDENCIES:
all: $(OUT)

$(OUT): $(OBJ) 
	$(LDCC) $(OBJ) -o $@
	$(STRIP) $@

esoext.o putline.o linetype.o lidtbl.o: \
	$(INC)/f77ext.h \
	$(INC)/f77stat.h

getline.o extutl.o idtbl.o f77utl.o: \
	$(INC)/f77ext.h

test: $(OUT)
	$(OUT) -f test.for

clean_exec:
	rm -f $(OUT) 

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