From: Niki Roo Date: Tue, 2 Jul 2024 14:27:48 +0000 (+0200) Subject: README X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=d51c88dca3ee2e79981b52f0d6af3ea6ded9cbb5;p=cutils.git README --- diff --git a/README.md b/README.md index b7e18da..9f1abf8 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,18 @@ You may use it in various ways. Simply clone the repository (branch: master) in your `src/` directory: - call **make** with `make -f src/cutils` +- it will use bin/ as output directory by default (variable dstdir) - use `#include "cutils/cutils.h"` (for instance -- notice the double quotes) -- use the required `.o` file(s): `gcc bin/xxx.o bin/libcutils.o -o bin/my-prog` +- use the required `.a` file(s): `gcc bin/xxx.o bin/libcutils.a -o bin/my-prog` +- ...or via `-l`: `gcc bin/xxx.o -o bin/my-prog -lcutils -Lbin/` Install it on your machine: - compile and install it (see **Compilation** below) - use `#include ` (for instance -- notice the square brackets) - use one or more of of `-lcutils`, `-lcutils-net` or `-lcutils-check` -Use a local version: -- locally generate the `.o` files (see **Compilation** below) +Use a local version merged with your own sources: +- locally generate the `.a` files (see **Compilation** below) - use `#include "cutils/cutils.h"` (for instance -- notice the double quotes) - use the required `.o` file(s): `gcc bin/xxx.o bin/libcutils.o -o bin/my-prog`