5. Compiling other software

Contents of this section

Always check files called README, INSTALL, or something equally prominent for program-specific instructions. In general, however, the presence of an Imakefile indicates that you should probably run


xmkmf -a
make all

and the presence of a Makefile.in indicates that you should try


 ./configure --prefix=/usr
make all

If there is just a Makefile, try executing ``make all'', ``make'', and ``make progname'' in that order. Otherwise, you'll have to invoke gcc manually: if the source is in foo.c, try


gcc -c foo.c -o foo.o
gcc foo.o -o foo

to produce an executable called foo.


Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter