aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-12 17:58:06 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-13 07:54:07 +0100
commit62ee3ef1ca13872e1f9b07f6e4e53cea8b684d72 (patch)
treed0c6844356820c3716a24e76ee3912d8e6ec1cf9 /README.md
parent438fe10b069b355407cd42b244de5deb695f2338 (diff)
downloadlibweb-62ee3ef1ca13872e1f9b07f6e4e53cea8b684d72.tar.gz
Replace Makefile with configure script
Since libweb depends on dynstr, this dependency can be already available on the system, and therefore the CFLAGS and LDFLAGS should be updated according to pkg-config(1), rather than hardcoding them to the source tree.
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md
index d522bcf..a57fe0d 100644
--- a/README.md
+++ b/README.md
@@ -76,14 +76,23 @@ apk add cmake
Two build environments are provided for `libweb` - feel free to choose any of
them:
-- A mostly POSIX-compliant [`Makefile`](Makefile).
+- A [`configure`](configure) POSIX shell and mostly POSIX-compliant
+[`Makefile`](Makefile).
- A [`CMakeLists.txt`](CMakeLists.txt).
`libweb` can be built using the standard build process:
#### Make
+First, generate the `Makefile` via the `configure` script:
+
```sh
+$ ./configure
+```
+
+Then:
+
+```
$ make
```
@@ -93,12 +102,20 @@ the use of recursive `make`. For example, assuming `libweb` is contained on a
subdirectory:
```make
-libweb/libweb.a:
+libweb/Makefile:
+ cd libweb && ./configure
+libweb/libweb.a: libweb/Makefile
+cd libweb && $(MAKE)
```
Additionally, `libweb` can be installed using the `install` target. A
-custom prefix can be assigned via the `PREFIX` variable:
+custom prefix can be assigned via the `configure` script:
+
+```sh
+$ ./configure --prefix=$HOME/libweb-prefix
+```
+
+Or, directly from the generated `Makefile`:
```sh
$ make PREFIX=$HOME/libweb-prefix install