Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-thompson/librfn
A general utility library from redfelineninja.org.uk
https://github.com/daniel-thompson/librfn
Last synced: about 2 months ago
JSON representation
A general utility library from redfelineninja.org.uk
- Host: GitHub
- URL: https://github.com/daniel-thompson/librfn
- Owner: daniel-thompson
- License: lgpl-3.0
- Created: 2014-04-15T20:47:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T10:26:31.000Z (over 3 years ago)
- Last Synced: 2024-10-11T22:44:28.456Z (2 months ago)
- Language: C
- Size: 1.21 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
librfn - A general utility library
==================================librfn is a collection of small library utilities collected whilst writing
"stuff" in C and wondering why I was writing the same type of code over and
over again.It is neither organised nor comprehensive. Instead it is a pick 'n choose
library. If you like the code (and the license) use it. Either by copying the
raw C files into your application or, perhaps better, but integrating librfn
into your git project as either a submodule or subtree.For library documentation see http://daniel-thompson.github.io/librfn .
Building
--------Generally speaking librfn expects to be built using the build system of
whatever project it has been integrated into. It has no real dependancies (even
the code the assumes a POSIX OS is fairly clearly separated). It does however
has a simple build system based on the standard GNU autotools in order to allow
the demos and tests to be run from the librfn repo.Try:
./configure
make
make check
src/fibredemoIf you obtained librfn via git you must generate the configure script and
Makefile templates first:autoreconf -i
Integrating as a sub-module
---------------------------Try:
mkdir mycoolapp && cd mycoolapp && git init .
git submodule add https://github.com/daniel-thompson/librfn.gitIntegrating as a sub-tree
-------------------------Try:
mkdir mycoolapp && cd mycoolapp && git init .
git remote add -f librfn https://github.com/daniel-thompson/librfn.git
git subtree add --prefix librfn librfn master --squashTo update to the latest version of librfn:
git fetch librfn master
git subtree pull --prefix librfn librfn master --squashFor some idea of the benefits of subtree over submodule see:
http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/