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: \ CA1.exe\ CA2.exe\ genetic.exe\ hopfield.exe\ sandpile.exe testC: \ CA1\ CA2\ genetic\ hopfield\ sandpile CA1.exe: CA1.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) CA2.exe: CA2.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) genetic.exe: genetic.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) hopfield.exe: hopfield.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) sandpile.exe: sandpile.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) CA1: CA1.exe $@ CA2: CA2.exe $@ genetic: genetic.exe $@ hopfield: hopfield.exe $@ sandpile: sandpile.exe $@ F: \ CA1_f.exe\ CA2_f.exe\ genetic_f.exe\ hopfield_f.exe\ sandpile_f.exe testF: \ CA1_f\ CA2_f\ genetic_f\ hopfield_f\ sandpile_f CA1_f.exe: CA1.f $(F77CHK) CA1.f $(F77) $(FFLAGS) -o $@ CA1.f $(LFLAGS) CA2_f.exe: CA2.f $(F77CHK) CA2.f $(F77) $(FFLAGS) -o $@ CA2.f $(LFLAGS) genetic_f.exe: genetic.f $(F77CHK) genetic.f $(F77) $(FFLAGS) -o $@ genetic.f $(LFLAGS) hopfield_f.exe: hopfield.f $(F77CHK) hopfield.f $(F77) $(FFLAGS) -o $@ hopfield.f $(LFLAGS) sandpile_f.exe: sandpile.f $(F77CHK) sandpile.f $(F77) $(FFLAGS) -o $@ sandpile.f $(LFLAGS) CA1_f: CA1_f.exe $@ CA2_f: CA2_f.exe $@ genetic_f: genetic_f.exe $@ hopfield_f: hopfield_f.exe $@ sandpile_f: sandpile_f.exe $@