guowenxue
2019-07-16 4a84ac1e75212a5625ff6b83c413692bb83ce95d
Update mqttd/makefile, fix mosquitto library build bug
1 files modified
6 ■■■■ changed files
mqttd/makefile 6 ●●●● patch | view | raw | blame | history
mqttd/makefile
@@ -39,9 +39,9 @@
CFLAGS+=-Ihal -Ietc -Ilylib 
LDFLAGS+=-L hal -lhal -Letc -letc -Llylib -llylib
LIBS+=-L hal -lhal -Letc -letc -Llylib -llylib
LDFLAGS+=-lmosquitto -lpthread -lm
LIBS+=-lmosquitto -lpthread -lm
SRCFILES = $(wildcard *.c)
IMAGE_NAME=$(shell basename ${PWD})
@@ -60,7 +60,7 @@
    cd ${MQTT_LIBPATH} && bash build.sh
binary:  ${SRCFILES}
    $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS}
    $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} ${LIBS}
    @echo " Compile over"
tag: