mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 13:49:01 +08:00
20 lines
445 B
Makefile
20 lines
445 B
Makefile
PROG ?= example
|
|
CFLAGS ?= -DMG_IO_SIZE=8192
|
|
MBEDTLS_DIR ?=
|
|
|
|
ifeq "$(MBEDTLS_DIR)" ""
|
|
else
|
|
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLS_DIR)/include -I/usr/include
|
|
CFLAGS += -L$(MBEDTLS_DIR)/lib -lmbedtls -lmbedcrypto -lmbedx509
|
|
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
|