Getting (cloning) the sources
$ fossil clone https://sqlite.org/althttpd
The clone
operation has cloned the repo into althttpd.fossil
and opened it into the directory althttpd
:
$ ls -1AF
althttpd/
althttpd.fossil
althttpd.fossil
is a
SQLite database:
$ file althttpd.fossil
althttpd.fossil: SQLite 3.x database (Fossil repository), last written using SQLite version 3046000
Building the sources
In the opened repository, running make
creates althttpd
and althttpsd
, the webserver without and with SSL support:
$ cd althttpd
$ make
cc -o mkversion mkversion.c
./mkversion manifest.uuid manifest VERSION >VERSION.h
cc -Os -Wall -Wextra -I. -o althttpd althttpd.c
cc -Os -Wall -Wextra -I. -fPIC -o althttpsd -DENABLE_TLS althttpd.c -lssl -lcrypto
Misc
Unfortunately, it seems that althttpd operates in no-blocking mode, i. e. it tries to accept()
incoming connections in a loop.