Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created August 20, 2021 14:38
Show Gist options
  • Save suru-dissanaike/47a250b99689685c6d78d2446fc35f16 to your computer and use it in GitHub Desktop.
Save suru-dissanaike/47a250b99689685c6d78d2446fc35f16 to your computer and use it in GitHub Desktop.
CC=gcc # gcc || clang
LIBS = -lwebsockets -ljson-c -lubox -lpthread -lblobmsg_json -lmosquitto -luci -ljson-c
all: gw-client.o
$(CC) -g gw-client.c ./utils/uci_config_loader.c ./mqtt/mqtt_handler.c $(LIBS) -o ./gw-client
clean:
rm -f gw-client *.o *.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment