SDCC supports the VPATH feature provided by configure and make. It allows to separate the source and build trees. Here's an example: cd ~ # cd $HOME tar -xzf sdcc.src.tar.gz # extract source to directory sdcc mkdir sdcc.build # put output in sdcc.build cd sdcc.build ../sdcc/configure # configure is doing all the magic! make
That's it! configure 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 make the generated files
will be in ~/sdcc.build, while the source files stay
in ~/sdcc.
Next: 2.5 Building the Documentation Up: 2.4 Building SDCC Previous: 2.4.8 Windows Install Using Contents Index 2008-02-29 |