############################################################ # Note that this 'Makefile' assumes that the following # environment variables are set: # # F77 -> name of f77 compiler # F77FLAGS -> generic f77 flags # F77CFLAGS -> f77 flags for compilation phase # F77LFLAGS -> f77 flags for load phase ############################################################ .IGNORE: F77_COMPILE = $(F77) $(F77FLAGS) $(F77CFLAGS) F77_LOAD = $(F77) $(F77FLAGS) $(F77LFLAGS) .f.o: $(F77_COMPILE) $*.f EXECUTABLES = greeting all: $(EXECUTABLES) greeting: greeting.o sayhello.o $(F77_LOAD) greeting.o sayhello.o -o greeting clean: rm *.o rm $(EXECUTABLES)