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: \ animation.exe\ print.exe\ sho.exe\ pendula.exe\ rc.exe testC: \ animation\ print\ sho\ pendula\ rc animation.exe: animation.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) print.exe: print.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) sho.exe: sho.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) pendula.exe: pendula.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) rc.exe: rc.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) animation: animation.exe $@ print: print.exe $@ sho: sho.exe $@ pendula: pendula.exe $@ rc: rc.exe $@ F: \ animation_f.exe\ print_f.exe\ sho_f.exe\ pendula_f.exe\ rc_f.exe testF: \ animation_f\ print_f\ sho_f\ pendula_f\ rc_f animation_f.exe: animation.f $(F77CHK) animation.f $(F77) $(FFLAGS) -o $@ animation.f $(LFLAGS) print_f.exe: print.f $(F77CHK) print.f $(F77) $(FFLAGS) -o $@ print.f $(LFLAGS) sho_f.exe: sho.f $(F77CHK) sho.f $(F77) $(FFLAGS) -o $@ sho.f $(LFLAGS) pendula_f.exe: pendula.f $(F77CHK) pendula.f $(F77) $(FFLAGS) -o $@ pendula.f $(LFLAGS) rc_f.exe: rc.f $(F77CHK) rc.f $(F77) $(FFLAGS) -o $@ rc.f $(LFLAGS) animation_f: animation_f.exe $@ print_f: print_f.exe $@ sho_f: sho_f.exe $@ pendula_f: pendula_f.exe $@ rc_f: rc_f.exe $@