#     Makefile for the occam TA and TB routines for the FORTRAN library
#
# This file assumes that it is being run within the directory of the sources
# and output files.
#
# The macro OUTNAME must be supplied from the command line.
#
#                         19-Nov-90 SRH
#
#                 This file is set up for UNIX.


# the following macros are UNIX specific
SWITCH=-
CONCATENATE=cat
INTO=>
DELETE=rm $(SWITCH)f
COPY=cp


OUTNAMEA=tempcata.ftn
OUTNAMEB=tempcatb.ftn

# this name must be supplied from the command line
OUTNAME=


all:
	$(MAKE) $(SWITCH)f occlibfa OUTNAME=$(OUTNAMEA)
	$(MAKE) $(SWITCH)f occlibfb OUTNAME=$(OUTNAMEB)
	$(CONCATENATE) $(OUTNAMEA) $(OUTNAMEB) $(INTO) $(OUTNAME)
	$(COPY) $(OUTNAME) occama.lib
	$(DELETE) $(OUTNAMEA) $(OUTNAMEB)
