# Building OAI executables (Trunk and next release)
Please use these instructions to build OAI on the current trunk and as of Release 0.3.
OAI comes with an automated build script (beta version) located at the root of the `cmake_targets` directory. Currently, the tool is developed to build the eNB for different hardware platforms, 3GPP releases, standalone or with S1 interface, unitary simulations, and system simulation.
The build system for OAI uses cmake which auto-generates makefiles.
* oaisim: `./build_oai --oaisim (build oaisim with S1 support)`
* oaisim_nos1: `./build_oai --oaisim --noS1` (build oaisim without S1 support)
These will create directories under `cmake_targets` corresponding to the different targets. These are the main directories:
* lte_noS1_build_oai (see notes below for further building instructions) : L1/L2 + Linux IP interface (i.e. no S1 interface). This is a target which will work with and OAI eNB and OAI UE only.
./build_epc -i#Need to run only once to install missing packages
./build_hss -i#Need to run only once to install missing packages
```
The detailed instructions for EPC are located in: `YOUR_openair-cn_DIRECTORY/DOCS/EPC_User_Guide.pdf`
## Building Older Releases
The older releases of OAI (0.1, 0.2) use an older build system located in targets/ durectory. This build system is deprecated and should not be used unless you want to compile older releases. The instructions to compile older releases (0.1, 0.2) are located [here](OlderReleases).