libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit de4d40d46ae9b821be49200c20caee096dc02255
parent d8338e166a0f89ba1a12ca6cd2470b3f2dadff64
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon,  6 Feb 2017 13:25:19 +0100

Fix(Makefile): Add a rule to compile library only:

Add documentation in README.md too

Diffstat:
MMakefile | 4++++
MREADME.md | 15++++++++++++++-
2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -66,6 +66,10 @@ $(NAME): $(SQLITE) $(OBJS) @$(LIB) $(ARFLAGS) $(NAME) objs/*.o @rm -rf $(OBJ_DIR) +single: $(SQLITE) $(OBJS) + @echo "LD\t\t$(NAME)" + @$(LIB) $(ARFLAGS) $(NAME) $(OBJS) + init: make -C lib/libmorphux cd lib/curl/ && ./buildconf && ./configure --disable-shared --enable-debug --enable-maintainer-mode && make diff --git a/README.md b/README.md @@ -32,10 +32,23 @@ make init ``` ### Compile +By default, the Makefile will create a ready-to-use library, containing the +following: +- libmpm +- libcurl +- json +- sqlite +The result is roughly ~20MB ``` make ``` +If you want to compile just the libmpm library: +``` +make single +``` +Single lib is about 74Ko + # Test ``` valgrind @@ -59,7 +72,7 @@ make coverage # Use Compile with the following options ``` -gcc [...] -Llibmpm/ -lmpm -Ilibmpm/inc +gcc [...] -Llibmpm/ -lmpm -pthread -ldl -Ilibmpm/inc ``` Of course, ```libmpm``` directory must exist.