CC = gcc F77 = g77 CFLAGS = -s -O -I../include -W -Wall #-DDEBUG #-ggdb FFLAGS = $(CFLAGS) LFLAGS = -L../lib -lTB -lGrWin -Wl,--subsystem,console -mwindows F77CHK = ../bin/f77chk.pl all: F C test: testF testC clean: -rm *.exe ####################################################################### C: \ verify.exe\ radiation.exe\ maxwell.exe\ magnetism.exe\ laplace.exe\ fieldline.exe testC: \ verify\ radiation\ maxwell\ magnetism\ laplace\ fieldline verify.exe: verify.c $(CC) $(CFLAGS) -o $@ verify.c $(LFLAGS) radiation.exe: radiation.c $(CC) $(CFLAGS) -o $@ radiation.c $(LFLAGS) maxwell.exe: maxwell.c $(CC) $(CFLAGS) -o $@ maxwell.c $(LFLAGS) magnetism.exe: magnetism.c $(CC) $(CFLAGS) -o $@ magnetism.c $(LFLAGS) laplace.exe: laplace.c $(CC) $(CFLAGS) -o $@ laplace.c $(LFLAGS) fieldline.exe: fieldline.c $(CC) $(CFLAGS) -o $@ fieldline.c $(LFLAGS) verify: verify.exe $@ radiation: radiation.exe $@ maxwell: maxwell.exe $@ magnetism: magnetism.exe $@ laplace: laplace.exe $@ fieldline: fieldline.exe $@ F: \ verify_f.exe\ radiation_f.exe\ maxwell_f.exe\ magnetism_f.exe\ laplace_f.exe\ fieldline_f.exe testF: \ verify_f\ radiation_f\ maxwell_f\ magnetism_f\ laplace_f\ fieldline_f verify_f.exe: verify.f $(F77CHK) verify.f $(F77) $(FFLAGS) -o $@ verify.f $(LFLAGS) radiation_f.exe: radiation.f $(F77CHK) radiation.f $(F77) $(FFLAGS) -o $@ radiation.f $(LFLAGS) maxwell_f.exe: maxwell.f $(F77CHK) maxwell.f $(F77) $(FFLAGS) -o $@ maxwell.f $(LFLAGS) magnetism_f.exe: magnetism.f $(F77CHK) magnetism.f $(F77) $(FFLAGS) -o $@ magnetism.f $(LFLAGS) laplace_f.exe: laplace.f $(F77CHK) laplace.f $(F77) $(FFLAGS) -o $@ laplace.f $(LFLAGS) fieldline_f.exe: fieldline.f $(F77CHK) fieldline.f $(F77) $(FFLAGS) -o $@ fieldline.f $(LFLAGS) verify_f: verify_f.exe $@ radiation_f: radiation_f.exe $@ maxwell_f: maxwell_f.exe $@ magnetism_f: magnetism_f.exe $@ laplace_f: laplace_f.exe $@ fieldline_f: fieldline_f.exe $@