From 3418ca5aacfd42b84d39b31127bc20f34000b19b Mon Sep 17 00:00:00 2001 From: praticamentetilde Date: Wed, 16 Mar 2016 21:30:52 +0100 Subject: [PATCH] Updated README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 902630c..341540d 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,12 @@ Library that provides a bash-like interface for CLI C++ programs ### Credits Code based on "Write a Shell in C" - by Stephen Brennan (http://brennan.io/2015/01/16/write-a-shell-in-c/) +The code has been slightly modified. +### The library +The library can be compiled as shared library with the CMakeLists.txt file already in msh-console-library/, or it can be compiled with these commands: + +``` +cd msh-console-library +g++ -Wall -fPIC -std=c++11 -c command.cpp commands.cpp shell.cpp commandexecutor.cpp +g++ -shared -Wl,-soname,libmshconsole.so.1.0.0 -o libmshconsole.so.1.0.0 commandexecutor.o command.o commands.o shell.o +```