[mesa-users] Bug in makefile distributed with package_template?
Warrick Ball
wball at astro.physik.uni-goettingen.de
Tue Nov 8 08:53:30 EST 2016
Hi everyone,
I've recently been trying to place code into a new package using MESA's
package template. I've been running into a compile-time error with my
tester and, though I'm pretty rusty at FORTRAN and compiling stuff, here's
what I think is wrong.
Here's a block from $MESA_DIR/package_template/make/makefile:
LIB = libpkg.a
LIB_DEFS = pkg_def.o
LIB_OBJS = pkg_mod.o pkg_lib.o
$(LIB) : $(LIB_DEFS) $(LIB_OBJS)
$(LIB_TOOL) $(LIB) $(LIB_OBJS)
I've effectively got code in pkg_def.o that the test isn't seeing. My
guess is that's because the last line of that block should read
$(LIB_TOOL) $(LIB) $(LIB_DEFS) $(LIB_OBJS)
or something similar. That certainly solves my problem, so I'll assume
that's the bug. If I've made a mistake, or this is an indication that I'm
using the package template incorrectly, let me know!
Cheers,
Warrick
------------
Warrick Ball
Postdoc, Institut für Astrophysik Göttingen
wball at astro.physik.uni-goettingen.de
+49 (0) 551 39 5069
More information about the Mesa-users
mailing list