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: \ circle.exe\ circle2.exe\ planet.exe\ mouse.exe\ planet2.exe\ no_circle.exe\ scatter.exe\ vector.exe testC: \ circle\ circle2\ planet\ mouse\ planet2\ no_circle\ scatter\ vector circle.exe: circle.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) circle2.exe: circle2.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) planet.exe: planet.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) mouse.exe: mouse.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) planet2.exe: planet2.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) no_circle.exe: no_circle.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) scatter.exe: scatter.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) vector.exe: vector.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) circle: circle.exe $@ circle2: circle2.exe $@ planet: planet.exe $@ mouse: mouse.exe $@ planet2: planet2.exe $@ no_circle: no_circle.exe $@ scatter: scatter.exe $@ vector: vector.exe $@ F: \ circle_f.exe\ circle2_f.exe\ planet_f.exe\ mouse_f.exe\ planet2_f.exe\ no_circle_f.exe\ scatter_f.exe\ vector_f.exe testF: \ circle_f\ circle2_f\ planet_f\ mouse_f\ planet2_f\ no_circle_f\ scatter_f\ vector_f circle_f.exe: circle.f $(F77CHK) circle.f $(F77) $(FFLAGS) -o $@ circle.f $(LFLAGS) circle2_f.exe: circle2.f $(F77CHK) circle2.f $(F77) $(FFLAGS) -o $@ circle2.f $(LFLAGS) planet_f.exe: planet.f $(F77CHK) planet.f $(F77) $(FFLAGS) -o $@ planet.f $(LFLAGS) mouse_f.exe: mouse.f $(F77CHK) mouse.f $(F77) $(FFLAGS) -o $@ mouse.f $(LFLAGS) planet2_f.exe: planet2.f $(F77CHK) planet2.f $(F77) $(FFLAGS) -o $@ planet2.f $(LFLAGS) no_circle_f.exe: no_circle.f $(F77CHK) no_circle.f $(F77) $(FFLAGS) -o $@ no_circle.f $(LFLAGS) scatter_f.exe: scatter.f $(F77CHK) scatter.f $(F77) $(FFLAGS) -o $@ scatter.f $(LFLAGS) vector_f.exe: vector.f $(F77CHK) vector.f $(F77) $(FFLAGS) -o $@ vector.f $(LFLAGS) circle_f: circle_f.exe $@ circle2_f: circle2_f.exe $@ planet_f: planet_f.exe $@ mouse_f: mouse_f.exe $@ planet2_f: planet2_f.exe $@ no_circle_f: no_circle_f.exe $@ scatter_f: scatter_f.exe $@ vector_f: vector_f.exe $@