92 lines
1.7 KiB
Makefile
92 lines
1.7 KiB
Makefile
# Makefile for building Eigenmath on Linux machines.
|
|
#
|
|
# 1. Unpack the tarball.
|
|
#
|
|
# $ tar zxf math.tar.gz
|
|
#
|
|
# 2. Compile it. (For Power PC and other big endian machines, first add -DMAC
|
|
# to CFLAGS below.)
|
|
#
|
|
# $ cd math
|
|
# $ make
|
|
#
|
|
# 3. Test it.
|
|
#
|
|
# $ ./math
|
|
# > --test
|
|
#
|
|
# 4. Press control-c to get out.
|
|
#
|
|
# > ^C
|
|
# $
|
|
#
|
|
# 5. Scripts can be run from the command line.
|
|
#
|
|
# $ ./math StaticSphericalMetric
|
|
#
|
|
# 6. See eigenhead.com for more examples.
|
|
|
|
|
|
# CXX and CXXFLAGS are used by make's implicit rule for compiling C++ files.
|
|
# divby1billion() in mstr.c doesn't work with -O2
|
|
CXXFLAGS = -Wall -Wuninitialized -O -DLINUX
|
|
# For big endian machines add -DMAC
|
|
#CXXFLAGS = -Wall -Wuninitialized -O -DLINUX -DMAC
|
|
|
|
objects = madd.o mmul.o mprime.o mgcd.o mpow.o mroot.o mcmp.o mstr.o mscan.o mmodpow.o \
|
|
qadd.o qsub.o qmul.o qdiv.o qpow.o \
|
|
sin.o cos.o tan.o arcsin.o arccos.o arctan.o \
|
|
sinh.o cosh.o tanh.o arcsinh.o arccosh.o arctanh.o \
|
|
abs.o mod.o roots.o eigen.o simplify.o for.o isprime.o index.o wedge.o \
|
|
rationalize.o prog.o lcm.o floor.o ceiling.o condense.o userfunc.o find.o \
|
|
init.o primetab.o bignum.o symbol.o run.o atomize.o pollard.o outer.o inner.o \
|
|
coeff.o \
|
|
main.o \
|
|
misc.o \
|
|
data.o \
|
|
alloc.o \
|
|
stack.o \
|
|
scan.o \
|
|
print.o \
|
|
eval.o \
|
|
subst.o \
|
|
gcd.o \
|
|
factor.o \
|
|
quickfactor.o \
|
|
factorpoly.o \
|
|
tensor.o \
|
|
contract.o \
|
|
derivative.o \
|
|
integral.o \
|
|
prime.o \
|
|
dsolve.o \
|
|
distill.o \
|
|
display.o \
|
|
add.o \
|
|
multiply.o \
|
|
power.o \
|
|
factorial.o \
|
|
sum.o \
|
|
product.o \
|
|
det.o \
|
|
inv.o \
|
|
hilbert.o \
|
|
taylor.o \
|
|
binomial.o \
|
|
trace.o \
|
|
charpoly.o \
|
|
hermite.o \
|
|
laguerre.o \
|
|
legendre.o \
|
|
degree.o \
|
|
divisors.o \
|
|
vectorize.o \
|
|
variables.o \
|
|
test.o \
|
|
selftest.o
|
|
|
|
math : $(objects)
|
|
$(CXX) -o math $(objects) -lm
|
|
|
|
$(objects) : defs.h
|