SHELL=/bin/csh
#
COMMAND= tiegcm_p7
CFT=	cft77
#FFLAGS= -Wf"-ez -Rb -Rc -o off"
#FFLAGS= -Wf"-ez -o off"
FFLAGS=	
LDR=	segldr
LDFLAGS=
#
LIBS=util.a
LIBPATH= -L/usr/local/lib
SYSLIBS= -lm -lmss
#
# All fortran source code files for this job:
FSRCS= \
tiegcm_p7.f getinp.f wrsumm.f
#
# Object code for this job (like SRCS but with .o suffix)
OBJS= $(FSRCS:.f=.o)
#
# Make shavano executable (made from cjob):
#
$(COMMAND):	$(OBJS)
	make getlibs
	$(LDR) $(LDFLAGS) -o $(COMMAND) $(OBJS) $(LIBS) $(LIBPATH) $(SYSLIBS)
#
# flint is fortran source code analyzer on shavano:
#
lint:
	flint -fg $(FSRCS) 
clean:
	rm M* *.f *.h *.c *.tar *.inp *.out *.o *.ymp gmeta core
getlibs:
	cp $(HOME)/tgcmvis/lib/util.a .
