\title{Appendix B: A sample Makefile}

We assume that you have installed the PARI library and include files
as explained in Appendix A or in the installation guide. If you chose
differently any of the directory names, change them accordingly
in the Makefiles.

If the program example that we have given is in the file mattrans.c
(say as the first of several matrix transcendental functions), then
a sample Makefile as follows. Note that the actual file 
{\tt examples/Makefile} is much more elaborate and you should have a look at
it if you intend to use the {\tt install} function, see \secref{se:install}.

\bprog
CC = cc
CFLAGS = -O -I/usr/local/include/pari
\h
all:\qquad mattrans
\h
mattrans:\qquad	mattrans.c
\q\q \$(CC) \$(CFLAGS) -o mattrans mattrans.c -lpari -lm
\eprog

\vfill\eject
