• linux下mqtt-client


    CPATH += ../embe_mqtt/MQTTClient/src
    PSRTPATH = ../embe_mqtt/MQTTPacket/src

    LOADPATH += -I$(CPATH)
    LOADPATH += -I$(PSRTPATH)

    PATH_C += $(PSRTPATH)/MQTTPacket.c
    PATH_C += $(PSRTPATH)/MQTTDeserializePublish.c
    PATH_C += $(PSRTPATH)/MQTTConnectClient.c
    PATH_C += $(PSRTPATH)/MQTTSubscribeClient.c
    PATH_C += $(PSRTPATH)/MQTTSerializePublish.c
    PATH_C += $(PSRTPATH)/MQTTUnsubscribeClient.c


    SRC += main.cpp
    SRC += pugixml.cpp
    GCC = g++

    DEMO=DEMO

    demo:
            $(GCC)  -g  -Wall -c transport.c -Os -s
            $(GCC) $(SRC) transport.o  ${LOADPATH}  ${PATH_C} -o $(DEMO)  -Os -s -pthread
    clean:
            rm DEMO

  • 相关阅读:
    树状数组&线段树
    8月7日小练
    8月6日小练
    LID&LDS 的另外一种算法
    LCS,LIS,LCIS
    8-11-Exercise
    8-10-Exercise
    线段树
    8-7-Exercise
    8-6-Exercise
  • 原文地址:https://www.cnblogs.com/osbreak/p/9481705.html
Copyright © 2020-2023  润新知