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: \ conduct.exe\ demon.exe\ ideal.exe testC: \ conduct\ demon\ ideal conduct.exe: conduct.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) demon.exe: demon.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) ideal.exe: ideal.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) conduct: conduct.exe $@ demon: demon.exe $@ ideal: ideal.exe $@ F: \ conduct_f.exe\ demon_f.exe\ ideal_f.exe testF: \ conduct_f\ demon_f\ ideal_f conduct_f.exe: conduct.f $(F77CHK) conduct.f $(F77) $(FFLAGS) -o $@ conduct.f $(LFLAGS) demon_f.exe: demon.f $(F77CHK) demon.f $(F77) $(FFLAGS) -o $@ demon.f $(LFLAGS) ideal_f.exe: ideal.f $(F77CHK) ideal.f $(F77) $(FFLAGS) -o $@ ideal.f $(LFLAGS) conduct_f: conduct_f.exe $@ demon_f: demon_f.exe $@ ideal_f: ideal_f.exe $@