SHELL=/bin/csh
#
FLNM= tracsat
USER= foster
CFT=	cft77
#FFLAGS= -Wf"-ezo -o off"
FFLAGS=
LDR=	segldr
LDFLAGS= -D dupentry=ignore -i /u0/$(USER)/segdir
LIBS=gettgcm.a libplt.a	libutil.a
COMMAND=$(FLNM).ymp
#
# All fortran source code files for this job:
FSRCS= \
	tracsat.f blktrac.f getinp.f rduars.f interp.f pltut.f maptrac.f \
	wrdat.f cpmpxy.f pltslt.f contour.f rdshuttl.f agchnl.f mkutlab.f \
	mkfield.f
#
# Object code for this job (like SRCS but with .o suffix)
OBJS= $(FSRCS:.f=.o)
#
# Make shavano executable (made from cjob):
#
$(COMMAND):	$(OBJS)
	$(LDR) $(LDFLAGS) -o $(COMMAND) $(OBJS) $(LIBS)
#
# flint is fortran source code analyzer on shavano:
#
lint:
	flint -fg $(FSRCS) 
#
clean:
	rm *.tar *.inp *.ymp *.o *.f *.h gmeta M*
getlibs:
	cp /u0/foster/lib/gettgcm.a .
	cp /u0/foster/lib/libplt.a .
	cp /u0/foster/lib/libutil.a .
