diff --git a/examples/file_upload/Makefile b/examples/file_upload/Makefile new file mode 100644 index 00000000..d4a074fb --- /dev/null +++ b/examples/file_upload/Makefile @@ -0,0 +1,19 @@ +# Copyright (c) 2014 Cesanta Software +# All rights reserved + +PROG = file_upload +CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) +SOURCES = $(PROG).c ../../mongoose.c + +all: $(PROG) + ./$(PROG) + +$(PROG): $(SOURCES) Makefile + $(CC) -o $(PROG) $(SOURCES) $(CFLAGS) + +win: + wine cl $(SOURCES) /MD /nologo /DNDEBUG /O1 /I../.. /Fe$(PROG).exe + wine $(PROG).exe + +clean: + rm -rf $(PROG) *.exe *.dSYM *.obj *.exp .*o *.lib *.gc* diff --git a/examples/upload.c b/examples/file_upload/file_upload.c similarity index 95% rename from examples/upload.c rename to examples/file_upload/file_upload.c index 2737ba98..f0c6a1a4 100644 --- a/examples/upload.c +++ b/examples/file_upload/file_upload.c @@ -15,7 +15,6 @@ static int send_index_page(struct mg_connection *conn) { "
" "
" - "
" "" "
"); diff --git a/examples/hello_world/hello_world.c b/examples/hello_world/hello_world.c index 5fae28c5..95056895 100644 --- a/examples/hello_world/hello_world.c +++ b/examples/hello_world/hello_world.c @@ -2,7 +2,7 @@ // All rights reserved // // This example demostrates basic use of Mongoose embedded web server. -// $Date: 2014-09-09 21:47:07 UTC $ +// $Date: 2014-09-09 22:20:23 UTC $ #include #include