# Makefile for compiling Fortran programs using ifort # Compiler settings FC = ifort OPT = -O3 # Optimization level (you can adjust this) # List of source files SOURCES = neural.f90 main.f90 # Object files (replace .f90 with .o) OBJECTS = $(SOURCES:.f90=.o) # Executable name EXECUTABLE = my_program.exe # Default target: build the executable all: $(EXECUTABLE) # Compile Fortran source files to object files %.o: %.f90 $(FC) $(OPT) -c $< -o $@ # Link object files to create the executable $(EXECUTABLE): $(OBJECTS) $(FC) -o $@ $(OBJECTS) # Clean up intermediate files clean: rm -f $(OBJECTS) $(EXECUTABLE)