Differences From
Artifact [0f98e9b572]:
18 18 lib/mbedtls/library/libmbedcrypto.a \
19 19 lib/mbedtls/library/libmbedx509.a
20 20 dep.mongoose: lib/mongoose/libmongoose.a
21 21 dep.json-c: lib/json-c/libjson-c.a
22 22
23 23 lib:
24 24 mkdir $@
25 -# parsav is designed to be fronted by a real web
26 -# server like nginx if SSL is to be used
27 25 # generate a shim static library so mongoose cooperates
28 -# with the build apparatus
26 +# with the build apparatus. note that parsav is designed
27 +# to be fronted by a real web server like nginx if SSL
28 +# is to be used, so we don't turn on SSL in mongoose
29 29 lib/mongoose/libmongoose.a: lib/mongoose lib/mongoose/mongoose.c lib/mongoose/mongoose.h
30 30 $(CC) -c $</mongoose.c -o lib/mongoose/mongoose.o \
31 31 -DMG_ENABLE_THREADS \
32 32 -DMG_ENABLE_IPV6 \
33 33 -DMG_ENABLE_HTTP_WEBDAV \
34 34 -DMG_ENABLE_HTTP_WEBSOCKET=0
35 35 ar rcs $@ lib/mongoose/*.o
................................................................................
40 40 lib/json-c/libjson-c.a: lib/json-c/Makefile
41 41 $(MAKE) -C lib/json-c
42 42 lib/mbedtls/library/%.a: lib/mbedtls
43 43 $(MAKE) -C lib/mbedtls/library $*.a
44 44
45 45 ifeq ($(dl), git)
46 46 lib/mongoose: lib
47 - cd lib && git clone https://github.com/cesanta/mongoose
47 + cd lib && git clone https://github.com/cesanta/mongoose.git
48 48 lib/mbedtls: lib
49 49 cd lib && git clone https://github.com/ARMmbed/mbedtls.git
50 50 lib/json-c: lib
51 51 cd lib && git clone https://github.com/json-c/json-c.git
52 52 else
53 53 lib/%: lib/%.tar.gz
54 54 cd lib && tar zxf $*.tar.gz