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: \ box.exe\ fermat.exe\ nucleardecay.exe\ randomwalk.exe testC: \ box\ fermat\ nucleardecay\ randomwalk box.exe: box.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) fermat.exe: fermat.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) nucleardecay.exe: nucleardecay.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) randomwalk.exe: randomwalk.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) box: box.exe $@ fermat: fermat.exe $@ nucleardecay: nucleardecay.exe $@ randomwalk: randomwalk.exe $@ F: \ box_f.exe\ fermat_f.exe\ nucleardecay_f.exe\ randomwalk_f.exe testF: \ box_f\ fermat_f\ nucleardecay_f\ randomwalk_f box_f.exe: box.f $(F77CHK) box.f $(F77) $(FFLAGS) -o $@ box.f $(LFLAGS) fermat_f.exe: fermat.f $(F77CHK) fermat.f $(F77) $(FFLAGS) -o $@ fermat.f $(LFLAGS) nucleardecay_f.exe: nucleardecay.f $(F77CHK) nucleardecay.f $(F77) $(FFLAGS) -o $@ nucleardecay.f $(LFLAGS) randomwalk_f.exe: randomwalk.f $(F77CHK) randomwalk.f $(F77) $(FFLAGS) -o $@ randomwalk.f $(LFLAGS) box_f: box_f.exe $@ fermat_f: fermat_f.exe $@ nucleardecay_f: nucleardecay_f.exe $@ randomwalk_f: randomwalk_f.exe $@