A simple lightweight HTTP server in C
First, clone the repository.
git clone https://github.com/bama4/simple-http-server.git
cd simple-http-server/
Create a build/ directory to store the contents of the build process.
mkdir build/
cd build/
Then run CMake to generate the Makefile
cmake ../
Finally, run GNU make to compile the program.
make
The executable should be in the folder bin/
and should be called simple_http_server
Create a build/ directory to store the contents of the build process.
mkdir build/
cd build/
Then run CMake to generate the Makefile for the tests
cmake -DCMAKE_BUILD_TYPE=Debug -DTEST=ON ../
To run with ASAN support, run the following (turn on SANITIZE):
cmake -DCMAKE_BUILD_TYPE=Debug -DTEST=ON -DSANITIZE=ON ../
Run the tests associated with the package
ctest --verbose