Welcome to the lib c
repository. This guide will help you set up and run the provided scripts.
- Cloning the Repository
- Prerequisites
- Running the
generate-cmakelists.sh
Script - Running the
change-compiler.sh
Script - Running the
build.sh
Script - Running the
install.sh
Script
Clone the repository using the following command:
git clone https://github.com/programming101dev/lib_c.git
Navigate to the cloned directory:
cd lib_c
Ensure the scripts are executable:
chmod +x *.sh
- to ensure you have all of the required tools installed, run:
./check-env.sh
If you are missing tools follow these instructions.
You will need to install:
- libp101_error
- libp101_env
- libm (if needed for your system)
You will need to create the CMakeLists.txt file:
./generate-cmakelists.sh
Tell CMake which compiler you want to use:
./change-compiler.sh -c <compiler>
To the see the list of possible compilers:
cat supported_c_compilers.txt
To build the library run:
./build.sh
To install the library run:
./install.sh
You may need to run it via sudo, or give the user account access to the install directories.