aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOskari Timperi <oswjk@users.noreply.github.com>2017-02-12 17:25:40 +0200
committerGitHub <noreply@github.com>2017-02-12 17:25:40 +0200
commit4be8806b603735f84796f876def792c9afa93400 (patch)
tree0d4d621e2c539134106e4e911ba8f27538c41169 /README.md
parentcd2faf64b2e995dee42e7e3911325d372c6604a1 (diff)
downloadmqtt-4be8806b603735f84796f876def792c9afa93400.tar.gz
mqtt-4be8806b603735f84796f876def792c9afa93400.zip
Create README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d0603f1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,23 @@
+# mqtt
+
+A simple MQTT library written in C.
+
+# Building
+
+Building the library requires CMake and a C compiler.
+
+ $ mkdir build
+ $ cd build
+ $ cmake ..
+ $ make
+
+# Creating the single file library
+
+Creating the single file library requires python (both 2 and 3 are ok).
+
+Execute in the build directory you created above:
+
+ $ cmake -DMQTT_AMALGAMATE=ON .
+ $ make amalgamate
+
+Now the amalgamation (`mqtt.c` and `mqtt.h`) is found in `<project_root>/amalgamation` directory.