mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 08:34:42 +08:00
2f2b48f714
Free-form Fortran (90 and later): case-insensitive keywords, dotted and
symbolic operators, both string delimiters, '!' comments ('//' is string
concatenation, not a comment), common intrinsics as functions. Plus the
usual plumbing: suffix settings, editor config page tab, save/restore,
highlighter factory dispatch.
Also let tests/hellofortran90 build with the default 'gfortran' instead
of a hardcoded 'gfortran-12'.
32 lines
759 B
Makefile
32 lines
759 B
Makefile
# Fortran compiler
|
|
FC = gfortran
|
|
FFLAGS = -g
|
|
|
|
# Source files
|
|
SRC = chess.f90 board_utils.f90 chess_types.f90 evaluation.f90 make_unmake.f90 move_generation.f90 search.f90
|
|
OBJ = $(SRC:.f90=.o)
|
|
|
|
# Executable
|
|
EXE = chess
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJ)
|
|
$(FC) $(FFLAGS) -o $@ $^
|
|
|
|
# Object file dependencies (based on which modules each file USEs)
|
|
chess.o: chess_types.o board_utils.o evaluation.o make_unmake.o move_generation.o search.o
|
|
board_utils.o: chess_types.o
|
|
evaluation.o: chess_types.o board_utils.o
|
|
make_unmake.o: chess_types.o board_utils.o
|
|
move_generation.o: chess_types.o board_utils.o
|
|
search.o: chess_types.o board_utils.o move_generation.o make_unmake.o evaluation.o
|
|
|
|
# Compile rule
|
|
%.o: %.f90
|
|
$(FC) $(FFLAGS) -c $<
|
|
|
|
clean:
|
|
rm -f *.o *.mod $(EXE)
|
|
|