X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=doc%2Fsdccman.lyx;h=353506e9a88539c31e6b2bce8f47ec01e0e1d9e6;hb=c42e9051755428d14eb620abc9eda86d43479a1a;hp=e66d11e7500cd06150319150e82f32cb66e6802b;hpb=5979bbd157a5f3cd8018aed666e4dd41a3e08edf;p=fw%2Fsdcc diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index e66d11e7..353506e9 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -840,7 +840,7 @@ status Collapsed / \end_inset --disable-device-lib-build Disables automatically building device libraries +-disable-device-lib Disables automatically building device libraries \layout List \labelwidthstring 00.00.0000 @@ -868,6 +868,20 @@ status Collapsed / \end_inset +-enable-doc Build pdf, html and txt files from the lyx sources +\layout List +\labelwidthstring 00.00.0000 + +- +\begin_inset ERT +status Collapsed + +\layout Standard + +\backslash +/ +\end_inset + -enable-libgc Use the Bohem memory allocator. Lower runtime footprint. \layout Standard @@ -1571,7 +1585,7 @@ status Collapsed / \end_inset --disable-device-lib-build +-disable-device-lib \backslash \newline @@ -3554,13 +3568,137 @@ sdcc_yyyymmdd_setup.exe and execute it. A windows typical installer will guide you through the installation process. +\layout Subsection + +VPATH +\begin_inset LatexCommand \index{VPATH} + +\end_inset + + feature +\layout Standard + +SDCC supports the VPATH feature provided by configure and make. + It allows to separate the source and build trees. + Here's an example: +\layout Standard + + +\family typewriter +cd ~\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +# cd $HOME +\layout Standard + + +\family typewriter +tar -xzf sdcc.src.tar.gz\SpecialChar ~ +# extract source to directory sdcc +\layout Standard + + +\family typewriter +mkdir sdcc.build\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +# put output in sdcc.build +\layout Standard + + +\family typewriter +cd sdcc.build +\layout Standard + + +\family typewriter +../sdcc/configure\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +# configure is doing all the magic! +\layout Standard + + +\family typewriter +make +\layout Standard +\noindent +That's it! +\series bold +configure +\series default + will create the directory tree will all the necessary Makefiles in ~/sdcc.build. + It automagically computes the variables srcdir, top_srcdir and top_buildir + for each directory. + After running +\series bold +make +\series default + the generated files will be in ~/sdcc.build, while the source files stay + in ~/sdcc. +\newline +This is not only usefull for building different binaries, e.g. + when cross compiling. + It also gives you a much better overview in the source tree when all the + generated files are not scattered between the source files. + And the best thing is: if you want to change a file you can leave the original + file untouched in the source directory. + Simply copy it to the build directory, edit it, enter `make clean`, `rm + Makefile.dep` and `make`. + +\series bold +make +\series default + will do the rest for you! \layout Section Building the Documentation \layout Standard -If the necessary tools (LyX, LaTeX, LaTeX2HTML) are installed it is as easy - as changing into the doc directory and typing +Add - +\begin_inset ERT +status Collapsed + +\layout Standard + +\backslash +/ +\end_inset + +-enable-doc to the configure arguments to build the documentation together + with all the other stuff. + You will need several tools (LyX, LaTeX, LaTeX2HTML, pdflatex, dvipdf, + dvips and makeindex) to get the job done. + Another possibility is to change to the doc directory and to type \family sans \series bold @@ -3582,7 +3720,7 @@ x). \end_inset - as editor this is straightforward. + as editor is straightforward. Prebuilt documentation in html and pdf format is available from \begin_inset LatexCommand \url{http://sdcc.sf.net/snap.php}