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: \ ising.exe\ boltzmann.exe testC: \ ising\ boltzmann ising.exe: ising.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) boltzmann.exe: boltzmann.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) ising: ising.exe $@ boltzmann: boltzmann.exe $@ F: \ ising_f.exe\ boltzmann_f.exe testF: \ ising_f\ boltzmann_f ising_f.exe: ising.f $(F77CHK) ising.f $(F77) $(FFLAGS) -o $@ ising.f $(LFLAGS) boltzmann_f.exe: boltzmann.f $(F77CHK) boltzmann.f $(F77) $(FFLAGS) -o $@ boltzmann.f $(LFLAGS) ising_f: ising_f.exe $@ boltzmann_f: boltzmann_f.exe $@