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: \ galaxy.exe testC: \ galaxy galaxy.exe: galaxy.c $(CC) $(CFLAGS) -o $@ $< $(LFLAGS) galaxy: galaxy.exe $@ F: \ galaxy_f.exe testF: \ galaxy_f galaxy_f.exe: galaxy.f $(F77CHK) galaxy.f $(F77) $(FFLAGS) -o $@ galaxy.f $(LFLAGS) galaxy_f: galaxy_f.exe $@