diff options
Diffstat (limited to 'http/Makefile')
-rw-r--r-- | http/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/http/Makefile b/http/Makefile index 550310d..135b290 100644 --- a/http/Makefile +++ b/http/Makefile @@ -8,7 +8,7 @@ PGM=${ARCH}/$(SAMPLE).exe MANAGERS=all # C source names, if any, go here -- minus the .c -C_PIECES=init FilesystemImage shttpd_ext +C_PIECES=init FilesystemImage shttpd_ext mongoose_ext C_FILES=$(C_PIECES:%=%.c) C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) @@ -42,7 +42,8 @@ LD_PATHS += ## FYI GoAhead requires POSIX to be enabled USE_GOAHEAD=no -USE_SIMPLE=yes +USE_SIMPLE=no +USE_MONGOOSE=yes USE_FTPD=yes ifeq ($(USE_GOAHEAD),yes) HTTPD = GoAhead Web Server @@ -56,6 +57,12 @@ ifeq ($(USE_SIMPLE),yes) override LD_LIBS += -lshttpd endif +ifeq ($(USE_MONGOOSE),yes) + HTTPD = Mongoose HTTPD Web Server + CFLAGS += -DUSE_MONGOOSE_HTTPD + override LD_LIBS += -lmghttpd +endif + ifeq ($(USE_FTPD),yes) CFLAGS += -DUSE_FTPD override LD_LIBS += -lftpd @@ -87,13 +94,16 @@ FilesystemImage: $(ARCH) stamp-index-html \ FilesystemImage.c: $(ARCH) FilesystemImage $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage -rootfs/index.html: shttpd_index.html goahead_index.html +rootfs/index.html: shttpd_index.html goahead_index.html mongoose_index.html ifeq ($(USE_SIMPLE),yes) cp shttpd_index.html rootfs/index.html endif ifeq ($(USE_GOHEAD),yes) cp goahead_index.html rootfs/index.html endif +ifeq ($(USE_MONGOOSE),yes) + cp mongoose_index.html rootfs/index.html +endif stamp-index-html: rootfs/index.html ifeq ($(USE_SIMPLE),yes) |