From 6a924a29cefbea27a101790343137db819b361be Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 26 Jun 2019 00:08:35 +0800 Subject: [PATCH] update mqttd to add configure file parser support --- mqttd/makefile | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mqttd/makefile b/mqttd/makefile index 9dbd850..932c4c9 100644 --- a/mqttd/makefile +++ b/mqttd/makefile @@ -37,8 +37,11 @@ export CFLAGS export LDFLAGS -CFLAGS+=-Ihal -IcJSON -LDFLAGS+=-L hal -lhal -LcJSON -lcJSON + +CFLAGS+=-Ihal -Ietc -Ilylib +LDFLAGS+=-L hal -lhal -Letc -letc -Llylib -llylib + +LDFLAGS+=-lmosquitto -lpthread -lm SRCFILES = $(wildcard *.c) IMAGE_NAME=$(shell basename ${PWD}) @@ -52,7 +55,8 @@ modules: make -C hal - make -C cJSON + make -C lylib + make ${CFLAGS} -C etc cd ${MQTT_LIBPATH} && bash build.sh binary: ${SRCFILES} @@ -68,7 +72,7 @@ clean: @make clean -C hal - @make clean -C cJSON + @make clean -C lylib @rm -f version.h @rm -f *.o $(IMAGE_NAME) @rm -rf *.gdb *.a *.so *.elf* -- Gitblit v1.9.1