move vendored libraries to their own directory

This commit is contained in:
Michele Guerini Rocco 2024-04-22 16:11:44 +02:00
parent 27141d803c
commit 3115e9e9f8
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
8 changed files with 19 additions and 11 deletions

View File

@ -45,14 +45,18 @@ referenced by citing:
[N. B. Marushchenko, C. D. Beidler, and H. Maassberg, *Fusion Sci.
Technol.* **55** (2009) 180](https://doi.org/10.13182/FST55-180).
GRAY includes adaptations of software developed by the University of
GRAY contains adaptations of software developed by the University of
Chicago, as Operator of Argonne National Laboratory, and other public
domain libraries
([`dierckx`](https://netlib.org/dierckx/),
[`minpack`](https://netlib.org/minpack/),
[`quadpack`](https://netlib.org/quadpack/),
[`slatec`](https://netlib.org/slatec/))
obtained from the [Netlib](https://netlib.org/) repository.
domain libraries, including but not limited to, the following packages
The full license notice for the `minpack` library can be found in the
[documentation](./minpack-LICENSE.txt).
- [`dierckx`](https://netlib.org/dierckx/),
- [`minpack`](https://netlib.org/minpack/),
- [`quadpack`](https://netlib.org/quadpack/),
- [`slatec`](https://netlib.org/slatec/)
that were obtained from the [Netlib](https://netlib.org/) repository.
For more information refer to the relevant source code in the
[src/vendor]{./src/vendor} directory.

View File

@ -33,10 +33,10 @@ DIRS = $(BINDIR) $(OBJDIR) $(INCDIR) $(LIBDIR) $(SHAREDIR)
##
# All Fortran source files
SOURCES = $(wildcard $(SRCDIR)/*.f90)
SOURCES = $(shell find '$(SRCDIR)' -name '*.f90')
# All Fortran object
OBJECTS = $(patsubst $(SRCDIR)/%.f90,$(OBJDIR)/%.o,$(SOURCES))
OBJECTS = $(addprefix $(OBJDIR)/,$(notdir $(SOURCES:f90=o)))
# Generated makefiles describing object dependencies
DEPS = $(OBJECTS:o=d)
@ -226,6 +226,10 @@ $(OBJDIR)/%.d: $(SRCDIR)/%.f90 | $(OBJDIR)
$(OBJDIR)/%.o: $(SRCDIR)/%.f90 | $(OBJDIR) $(INCDIR)
$(FC) -cpp $(CPPFLAGS) $(FFLAGS) -c '$<' -o '$@'
# Compile vendored libraries
$(OBJDIR)/%.o: $(SRCDIR)/vendor/%.f90 | $(OBJDIR) $(INCDIR)
$(FC) -cpp $(CPPFLAGS) $(FFLAGS) -c '$<' -o '$@'
# Generate Fortran code from awk script
$(INCDIR)/%.inc: $(SRCDIR)/%.awk | $(INCDIR)
awk -f '$<' > '$@'