Build and Install Brainfuck
masterTo build the project, you need CMake, a C compiler (like Clang or GCC), and libedit (e.g., libedit-dev on Debian/Ubuntu or via macOS Xcode command line tools).
Follow these steps to build from source:
- Clone the repository.
- Create and enter a
builddirectory. - Run
cmake ..to generate Makefiles. - Run
maketo compile. - (Optional) Run
make installto install the binaries to your local system.
You can run the interpreter directly from the build directory without installing using ./brainfuck <path_to_file>.
$ git clone https://github.com/fabianishere/brainfuck.git
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make install