#10993: Update eclib to 20120115
--------------------------------+-------------------------------------------
Reporter: cremona | Owner: cremona
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: packages | Resolution:
Keywords: elliptic curves | Work_issues: ldconfig in spkg-install
Upstream: N/A | Reviewer: Frithjof Schulze, Jeroen
Demeyer
Author: John Cremona | Merged:
Dependencies: #11354 |
--------------------------------+-------------------------------------------
Comment(by cremona):
Replying to [comment:58 vbraun]:
> The configure.ac and m4 files are definitely not easy to write,
essentially they are a mash-up of various languages and you can easily
produce unimaginable horrors if you don't follow the docs closely. On the
plus side, the only parts that actually change as you develop the code
further are the Makefile.am files. Whenever you add another source file
you just have to tell automake which binary it is for, and all the rest is
done automatically. And the Makefile.am is really easy to use and
maintain, for example http://code.google.com/r/vbraunname-eclib-
autotools/source/browse/procs/Makefile.am is much clearer than any hand-
written makefile could ever be.
>
> Is there a list of which make targets are particularly important?
In each of the 4 subdirectories it's important to make the lib target
since these 4 libs (+headers) are what's needed to use the package. Each
lib target has sub-targets headers & objs where the latter are the
compiled .o files which are made into a lib file using ar and ranlib.
Secondly, in each of the four there are some targets which make runnable
programs, either test programs (target test) or useful ones (target
progs). Some of the latter look a bit like test files and vice versa;
the test ones are also built with "make check" which runs them on prepared
inputs and compares the output, just as with a doctest in Sage. Some of
these progs are installed by Sage into SAGE_ROOT/local/bin, and the most
important of those is mwrank (under qrank).
Bear in mind that these makefiles are not just for Sage, but for other
users of eclib (including and possible restricted entirely to: me!) so
any changes to what is compiled and where things are put will create
difficulties for me (but not serious ones, if there is a good reason).
Looking at the new Makefile you started, you'll also need to handle make
progs, check, lib at least. And if you tell me what to do I can help...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10993#comment:59>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.