# Compiler FC = ifort # # # Compiler flags CFLAGS = -O2 -Wall # # Source files SOURCES = t_lgstc1.f90 lsq.f90 logistic.f90 # # Object files OBJECTS = $(SOURCES:.f90=.o) # # Executable name EXECUTABLE = t_lgstc1 # # Default target all: $(EXECUTABLE) # # Compile the main program and create the executable $(EXECUTABLE): $(OBJECTS) $(FC) $(CFLAGS) -o $@ $(OBJECTS) -I./ # # Compile Fortran source files into object files %.o: %.f90 $(FC) $(CFLAGS) -c $< # # Clean up object files and executable clean: rm -f $(OBJECTS) $(EXECUTABLE)