SHELL=/bin/csh # FLNM= satv USER= foster USERUC= FOSTER NEWLIB= $(FLNM).a CFT= cft77 #FFLAGS= -Wf"-ezo -o off" FFLAGS= LDR= segldr LDFLAGS= -D dupentry=ignore -i /u0/$(USER)/segdir LIBS=gettime.a libplt.a COMMAND=$(FLNM).ymp PROFLIB= MSSRCPATH=/$(USERUC)/src TARFILE=$(FLNM).tar TDIR=/d/$(USER)/$(FLNM) LIST = $(FLNM).list # # All fortran source code files for this job: FSRCS= \ satv.f getinp.f rdapprox.f getms.f lenstr.f \ mksatv.f drwpath.f ixfind.f conclr.f mkrgb.f # # Object code for this job (like SRCS but with .o suffix) OBJS= $(FSRCS:.f=.o) # # Header files not in cwd (for listing target) INCH = # # Source files not in cwd (for listing target) INCF = # # 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) # # Make shavano object library (made from clib): # $(NEWLIB): $(OBJS) bld -r $(NEWLIB) $(OBJS) # # Make backup of source code on the mass store: # (make this target from the sun) # msbackup: /home/sting/foster/bin/mktar \ -v -f $(TDIR)/$(TARFILE) -r -i $(INCF) $(INCH) toms -ft $(TDIR)/$(TARFILE) $(MSSRCPATH)/$(TARFILE) # # Make master listing of header and source files: # (make this target from the sun) # listing: cat *.h $(INCH) *.f $(INCF) > $(LIST) # # remove executable from shavano: rmymp: rsh shavano 'rm /usr/tmp/$(USER)/$(FLNM)/$(COMMAND)' # # clean shavano: cleanymp: rsh shavano 'cd /usr/tmp/$(USER)/$(FLNM); \ rm gmeta *.ymp M* *.f *.c *.h *.tar *.inp *.out fort.* *.nqs cjob core jafile ' # clean: rm *.tar *.inp *.ymp *.o *.f *.h gmeta M*