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: \ lattice_gas.exe\ random_walk2.exe testC: \ lattice_gas\ random_walk2 lattice_gas.exe: lattice_gas.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) random_walk2.exe: random_walk2.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) lattice_gas: lattice_gas.exe $@ random_walk2: random_walk2.exe $@ F: \ lattice_gas_f.exe\ random_walk2_f.exe testF: \ lattice_gas_f\ random_walk2_f lattice_gas_f.exe: lattice_gas.f $(F77CHK) lattice_gas.f $(F77) $(FFLAGS) -o $@ lattice_gas.f $(LFLAGS) random_walk2_f.exe: random_walk2.f $(F77CHK) random_walk2.f $(F77) $(FFLAGS) -o $@ random_walk2.f $(LFLAGS) lattice_gas_f: lattice_gas_f.exe $@ random_walk2_f: random_walk2_f.exe $@