Commit 70a4e3ec authored by ulrich_y's avatar ulrich_y

Have handyg.mod in root directory

parent 0991bec0
......@@ -587,20 +587,24 @@ all: libhandyg.a ${CONF_MPREP:+handyg} geval test
libhandyg.a:\$(objects)
@echo "AR \$@"
@\$(AR) \$@ $^
@\$(AR) \$@ \$^
handyg.mod: build/handyg.mod
cp \$< \$@
# rules to make object files into /build
build/%.o: src/%.f90
@echo "F90 \$@"
@\$(FC) \$(FFLAGS) -c $< -o \$@
@\$(FC) \$(FFLAGS) -c \$< -o \$@
build/%.o: checks/%.f90
@echo "F90 \$@"
@\$(FC) \$(FFLAGS) -c $< -o \$@
@\$(FC) \$(FFLAGS) -c \$< -o \$@
build/%.o: src/%.cpp
@echo "C++ \$@"
@\$(CC) \$(CXXFLAGS) -c $< -o \$@
@\$(CC) \$(CXXFLAGS) -c \$< -o \$@
geval: libhandyg.a build/geval.o
@echo "LD \$@"
......@@ -648,16 +652,16 @@ $HAVE_GINAC && $HAVE_MCC && echo -n "build/test-muoneNP.o " >> makefile
echo "build/test.o" >> makefile
cat >> makefile <<EOF
@echo "LD \$@"
@\$(LD) -o \$@ $^ \$(LFLAGS)
@\$(LD) -o \$@ \$^ \$(LFLAGS)
install: libhandyg.a build/handyg.mod ${CONF_MPREP:+handyg} geval
install: libhandyg.a handyg.mod ${CONF_MPREP:+handyg} geval
mkdir -p \$(PREFIX)
mkdir -p \$(PREFIX)/bin
cp geval \$(PREFIX)/bin/geval
mkdir -p \$(PREFIX)/lib
cp libhandyg.a \$(PREFIX)/lib/
mkdir -p \$(PREFIX)/include
cp build/handyg.mod \$(PREFIX)/include/
cp handyg.mod \$(PREFIX)/include/
EOF
$HAVE_MCC && cat >> makefile <<EOF
mkdir -p \$(MMPREFIX)
......@@ -672,7 +676,7 @@ fi
if [[ ! -z "$CONF_MODDIR" ]]; then
cat >> makefile <<EOF
mkdir -p \$(MODDIR)
cp build/handyg.mod \$(MODDIR)
cp handyg.mod \$(MODDIR)
EOF
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment