mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 09:49:19 +08:00
fb446022e2
Backend host is https only if TLS is enabled
22 lines
454 B
Makefile
22 lines
454 B
Makefile
PROG ?= example
|
|
CFLAGS ?= -DMG_IO_SIZE=128
|
|
SSL = ?
|
|
|
|
ifeq "$(SSL)" "MBEDTLS"
|
|
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -lmbedtls -lmbedcrypto -lmbedx509
|
|
endif
|
|
|
|
ifeq "$(SSL)" "OPENSSL"
|
|
CFLAGS += -DMG_ENABLE_OPENSSL=1 -lssl -lcrypto
|
|
endif
|
|
|
|
all: $(PROG)
|
|
$(DEBUGGER) ./$(PROG) $(ARGS)
|
|
|
|
|
|
$(PROG): main.c
|
|
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) $(EXTRA_CFLAGS) -o $(PROG) main.c
|
|
|
|
clean:
|
|
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb
|