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