Merge pull request #7 from avishkarabhishek786/backup_nodes
Backup nodes
This commit is contained in:
commit
375e2477b1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
examples.mk
|
|
||||||
json-rpc/
|
json-rpc/
|
||||||
supernode/playground/
|
supernode/playground/
|
||||||
playground
|
playground
|
||||||
|
|||||||
36
examples.mk
Normal file
36
examples.mk
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
SOURCES = $(PROG).c ../mongoose.c
|
||||||
|
CFLAGS = -g -W -Wall -Werror -I../ -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
|
||||||
|
|
||||||
|
all: $(PROG)
|
||||||
|
|
||||||
|
ifeq ($(OS), Windows_NT)
|
||||||
|
# TODO(alashkin): enable SSL in Windows
|
||||||
|
CFLAGS += -lws2_32
|
||||||
|
CC = gcc
|
||||||
|
else
|
||||||
|
CFLAGS += -pthread
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(SSL_LIB),openssl)
|
||||||
|
CFLAGS += -DMG_ENABLE_SSL -lssl -lcrypto
|
||||||
|
endif
|
||||||
|
ifeq ($(SSL_LIB), krypton)
|
||||||
|
CFLAGS += -DMG_ENABLE_SSL ../../../krypton/krypton.c -I../../../krypton
|
||||||
|
endif
|
||||||
|
ifeq ($(SSL_LIB),mbedtls)
|
||||||
|
CFLAGS += -DMG_ENABLE_SSL -DMG_SSL_IF=MG_SSL_IF_MBEDTLS -DMG_SSL_MBED_DUMMY_RANDOM -lmbedcrypto -lmbedtls -lmbedx509
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef ASAN
|
||||||
|
CC = clang
|
||||||
|
CFLAGS += -fsanitize=address
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(PROG): $(SOURCES)
|
||||||
|
$(CC) $(SOURCES) -o $@ $(CFLAGS)
|
||||||
|
|
||||||
|
$(PROG).exe: $(SOURCES)
|
||||||
|
cl $(SOURCES) /I../.. /MD /Fe$@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROG)
|
||||||
8715
supernode/index.html
8715
supernode/index.html
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user