mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
23 lines
543 B
Makefile
23 lines
543 B
Makefile
PROG ?= example
|
|
CFLAGS ?= -DMG_ENABLE_LINES $(EXTRA)
|
|
|
|
ifneq ($(MBEDTLS),)
|
|
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLS)/include -I/usr/include
|
|
CFLAGS += -L$(MBEDTLS)/lib -lmbedtls -lmbedcrypto -lmbedx509
|
|
endif
|
|
|
|
ifneq ($(OPENSSL),)
|
|
CFLAGS += -DMG_ENABLE_OPENSSL=1 -I$(OPENSSL)/include
|
|
CFLAGS += -L$(OPENSSL)/lib -lssl -lcrypto
|
|
endif
|
|
|
|
all: $(PROG)
|
|
$(DEBUGGER) ./$(PROG) $(ARGS)
|
|
|
|
|
|
$(PROG): main.c
|
|
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) -o $(PROG) main.c
|
|
|
|
clean:
|
|
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb
|