mongoose/examples/mqtt-client/Makefile

21 lines
427 B
Makefile
Raw Normal View History

2020-12-12 18:03:19 +08:00
PROG ?= example
2022-06-14 02:50:58 +08:00
SSL = ?
2020-12-12 18:03:19 +08:00
2022-06-14 02:50:58 +08:00
ifeq "$(SSL)" "MBEDTLS"
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -lmbedtls -lmbedcrypto -lmbedx509
endif
ifeq "$(SSL)" "OPENSSL"
CFLAGS += -DMG_ENABLE_OPENSSL=1 -lssl -lcrypto
2020-12-12 18:03:19 +08:00
endif
all: $(PROG)
$(DEBUGGER) ./$(PROG) $(ARGS)
$(PROG): main.c
2022-06-14 02:50:58 +08:00
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) $(EXTRA_CFLAGS) -o $(PROG) main.c
2020-12-12 18:03:19 +08:00
clean:
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb