This section provides an example makefile for use with Fortran M programs.
==
FM = fm
FMFLAGS = -g
DEFS =
PROGS = example1 cpp_ex ring2 intent1
OTHER_OBJS = merger1.o ring1.o tree.o work_man.o
all: $(PROGS)
other_objs: $(OTHER_OBJS)
example1: example1.o
$(FM) $(FMFLAGS) $(DEFS) -o example1 example1.o
cpp_ex: cpp_ex.o
$(FM) $(FMFLAGS) $(DEFS) -o cpp_ex cpp_ex.o
cpp_ex.o: cpp_ex.FM
$(FM) $(FMFLAGS) $(DEFS) -c cpp_ex.FM
ring2: ring2.o
$(FM) $(FMFLAGS) $(DEFS) -o ring2 ring2.o
intent1: intent1.o
$(FM) $(FMFLAGS) $(DEFS) -o intent1 intent1.o
clean:
rm -f *~ *.o *.f *__.c cpp_ex.fm *_link.c $(PROGS)
.SUFFIXES:
.SUFFIXES: .fm .o
.fm.o:
$(FM) $(FMFLAGS) $(DEFS) -c $*.fm
=1.03