Skip to content

Commit

Permalink
BLD: Completed the transition to generator in pure Fortran.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 14, 2023
1 parent 4977402 commit a83f951
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ endif

.PHONY: all clean install uninstall copy_h copy_a shared_linux shared_windows shared_darwin

all: $(LIBNAME)
all: generator $(LIBNAME)

generator:
make -C ./srcgen

$(LIBNAME): build copy_h copy_a shared copy_shared

Expand Down
6 changes: 3 additions & 3 deletions srcgen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ FFLAGS=-std=f2008 -Wall -Wextra -pedantic

.PHONY: generate

all: srcgen srcgenf
all: srcgen

srcgen: generator
./generator

generator: utilities.o fortran_code.o c_code.o py_code.o cpy_code.o fmain.o
$(FC) $^ -o generatorf
generator: utilities.o fortran_code.o c_code.o py_code.o cpy_code.o main.o
$(FC) $^ -o generator

%.o: %.f90
$(FC) -c $(FFLAGS) $< -o $@
Expand Down
2 changes: 2 additions & 0 deletions srcgen/fmain.f90 → srcgen/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,7 @@ program generator
close(fcheader)
print *, "Closing python as txt header file..."
close(fpython)
print *, "Closing cpython file..."
close(fcpython)

end program

0 comments on commit a83f951

Please sign in to comment.