22 lines
454 B
Makefile
Raw Normal View History

2020-12-25 04:32:56 +00:00
PROG ?= example
2021-10-27 19:20:52 +01:00
CFLAGS ?= -DMG_IO_SIZE=128
SSL = ?
2020-12-25 04:32:56 +00: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-25 04:32:56 +00:00
endif
all: $(PROG)
$(DEBUGGER) ./$(PROG) $(ARGS)
$(PROG): main.c
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) $(EXTRA_CFLAGS) -o $(PROG) main.c
2020-12-25 04:32:56 +00:00
clean:
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb