aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: d0603f1af09eebb8c8de12e4a592be80d13ff9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.