# makefile for batch processor # a tab precedes all rules # # OBJS - macro represinting all dependent object modules # CFLAGS = -g FFLAGS = -g LFLAGS = -lm OBJS = write_hdr.o write_scan.o swap.o read_smt2_v2.o # # function depends on OBJS files and is the target file to be made # function: $(OBJS) f77 $(CFLAGS) $(OBJS) $(LFLAGS) -o read_smt2_v2 # # dependency of OBJS files # # a tab precedes all rules # default suffix dependency .c files depend on .o .c.o: cc $(CFLAGS) -c $< .f.o: f77 $(FFLAGS) -c $<