Next: 2.3 Search Paths Up: 2. Installing SDCC Previous: 2.1 Configure Options Contents Index

#
2.2 Install paths

Description | Path | Default | Win32 builds
--- | --- | --- | ---
Binary files* | $EXEC_PREFIX | /usr/local/bin | \sdcc\bin
Include files | $DATADIR/ $INCLUDE_DIR_SUFFIX | /usr/local/share/sdcc/include | \sdcc\include
Library file** | $DATADIR/$LIB_DIR_SUFFIX | /usr/local/share/sdcc/lib | \sdcc\lib
Documentation | $DOCDIR | /usr/local/share/sdcc/doc | \sdcc\doc

> *compiler, preprocessor, assembler, and linker
> **the model is auto-appended by the compiler, e.g. small, large, z80, ds390 etc

The install paths can still be changed during `make install` with e.g.:

  make install prefix=$(HOME)/local/sdcc

Of course this doesn't change the search paths compiled into the binaries.
Moreover the install path can be changed by defining DESTDIR:

  make install DESTDIR=$(HOME)/sdcc.rpm/

Please note that DESTDIR must have a trailing slash!