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: \ compare.exe\ plot_function.exe\ cool.exe\ ginger.exe\ product.exe\ no_pass.exe\ product2.exe\ do_loop.exe\ series.exe\ tasks.exe\ example.exe\ pass.exe\ series_test.exe\ wheel.exe testC: \ compare\ plot_function\ cool\ ginger\ product\ no_pass\ product2\ do_loop\ series\ tasks\ example\ pass\ series_test\ wheel compare.exe: compare.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) plot_function.exe: plot_function.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) cool.exe: cool.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) ginger.exe: ginger.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) product.exe: product.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) no_pass.exe: no_pass.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) product2.exe: product2.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) do_loop.exe: do_loop.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) series.exe: series.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) tasks.exe: tasks.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) example.exe: example.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) pass.exe: pass.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) series_test.exe: series_test.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) wheel.exe: wheel.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) compare: compare.exe $@ plot_function: plot_function.exe $@ cool: cool.exe $@ ginger: ginger.exe $@ product: product.exe $@ no_pass: no_pass.exe $@ product2: product2.exe $@ do_loop: do_loop.exe $@ series: series.exe $@ tasks: tasks.exe $@ example: example.exe $@ pass: pass.exe $@ series_test: series_test.exe $@ wheel: wheel.exe $@ F: \ compare_f.exe\ plot_function_f.exe\ cool_f.exe\ ginger_f.exe\ product_f.exe\ no_pass_f.exe\ product2_f.exe\ do_loop_f.exe\ series_f.exe\ tasks_f.exe\ example_f.exe\ pass_f.exe\ series_test_f.exe\ wheel_f.exe testF: \ compare_f\ plot_function_f\ cool_f\ ginger_f\ product_f\ no_pass_f\ product2_f\ do_loop_f\ series_f\ tasks_f\ example_f\ pass_f\ series_test_f\ wheel_f compare_f.exe: compare.f $(F77CHK) compare.f $(F77) $(FFLAGS) -o $@ compare.f $(LFLAGS) plot_function_f.exe: plot_function.f $(F77CHK) plot_function.f $(F77) $(FFLAGS) -o $@ plot_function.f $(LFLAGS) cool_f.exe: cool.f $(F77CHK) cool.f $(F77) $(FFLAGS) -o $@ cool.f $(LFLAGS) ginger_f.exe: ginger.f $(F77CHK) ginger.f $(F77) $(FFLAGS) -o $@ ginger.f $(LFLAGS) product_f.exe: product.f $(F77CHK) product.f $(F77) $(FFLAGS) -o $@ product.f $(LFLAGS) no_pass_f.exe: no_pass.f $(F77CHK) no_pass.f $(F77) $(FFLAGS) -o $@ no_pass.f $(LFLAGS) product2_f.exe: product2.f $(F77CHK) product2.f $(F77) $(FFLAGS) -o $@ product2.f $(LFLAGS) do_loop_f.exe: do_loop.f $(F77CHK) do_loop.f $(F77) $(FFLAGS) -o $@ do_loop.f $(LFLAGS) series_f.exe: series.f $(F77CHK) series.f $(F77) $(FFLAGS) -o $@ series.f $(LFLAGS) tasks_f.exe: tasks.f $(F77CHK) tasks.f $(F77) $(FFLAGS) -o $@ tasks.f $(LFLAGS) example_f.exe: example.f $(F77CHK) example.f $(F77) $(FFLAGS) -o $@ example.f $(LFLAGS) pass_f.exe: pass.f $(F77CHK) pass.f $(F77) $(FFLAGS) -o $@ pass.f $(LFLAGS) series_test_f.exe: series_test.f $(F77CHK) series_test.f $(F77) $(FFLAGS) -o $@ series_test.f $(LFLAGS) wheel_f.exe: wheel.f $(F77CHK) wheel.f $(F77) $(FFLAGS) -o $@ wheel.f $(LFLAGS) compare_f: compare_f.exe $@ plot_function_f: plot_function_f.exe $@ cool_f: cool_f.exe $@ ginger_f: ginger_f.exe $@ product_f: product_f.exe $@ no_pass_f: no_pass_f.exe $@ product2_f: product2_f.exe $@ do_loop_f: do_loop_f.exe $@ series_f: series_f.exe $@ tasks_f: tasks_f.exe $@ example_f: example_f.exe $@ pass_f: pass_f.exe $@ series_test_f: series_test_f.exe $@ wheel_f: wheel_f.exe $@