summaryrefslogtreecommitdiffstats
path: root/cpukit/shttpd
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-06-11 13:30:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-06-11 13:30:25 +0000
commit4b58afcbe47e6190bccc79d4f55cf6117bc5b308 (patch)
tree6a771cfdaa19817bf4c58dad2f6a239d321ec4a4 /cpukit/shttpd
parent2007-06-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4b58afcbe47e6190bccc79d4f55cf6117bc5b308.tar.bz2
Rename shttpd's Makefile
Diffstat (limited to 'cpukit/shttpd')
-rw-r--r--cpukit/shttpd/Makefile.shttpd50
1 files changed, 50 insertions, 0 deletions
diff --git a/cpukit/shttpd/Makefile.shttpd b/cpukit/shttpd/Makefile.shttpd
new file mode 100644
index 0000000000..31e8da228e
--- /dev/null
+++ b/cpukit/shttpd/Makefile.shttpd
@@ -0,0 +1,50 @@
+SRCS= string.c shttpd.c log.c auth.c md5.c \
+ cgi.c mime_type.c config.c \
+ io_file.c io_socket.c io_ssl.c io_emb.c io_dir.c io_cgi.c
+HDRS= defs.h llist.h shttpd.h std_includes.h io.h md5.h ssl.h \
+ compat_unix.h compat_win32.h compat_rtems.h
+PROG= shttpd
+
+# Possible flags: (in brackets are rough numbers for 'gcc -O2' on i386)
+# -DHAVE_MD5 - use system md5 library (-2kb)
+# -DNDEBUG - strip off all debug code (-5kb)
+# -D_DEBUG - build debug version (very noisy) (+6kb)
+# -DNO_CGI - disable CGI support (-5kb)
+# -DNO_SSL - disable SSL functionality (-2kb)
+# -DNO_AUTH - disable authorization support (-4kb)
+# -DNO_GUI - Win32 only. Build console version, no GUI
+# -DCONFIG=\"file\" - use `file' as the default config file
+
+CL_FLAGS= /O1 /MD /TC /nologo /DNDEBUG
+
+all:
+ @echo "make (unix|msvc|mingw|rtems)"
+
+unix:
+ $(CC) -c $(CFLAGS) -DEMBEDDED $(SRCS) compat_unix.c
+ $(AR) -r lib$(PROG).a *.o && ranlib lib$(PROG).a
+ $(CC) $(CFLAGS) $(SRCS) compat_unix.c standalone.c -o $(PROG) $(LIBS)
+
+rtems:
+ $(CC) -c $(CFLAGS) -DEMBEDDED $(SRCS) compat_rtems.c
+ $(AR) -r lib$(PROG).a *.o && ranlib lib$(PROG).a
+
+msvc:
+ cl $(SRCS) /c $(CL_FLAGS) /DEMBEDDED
+ lib *.obj /out:shttpd.lib
+ rc resources.rc
+ cl $(SRCS) compat_win32.c standalone.c $(CL_FLAGS) \
+ /link resources.res /out:$(PROG).exe /machine:ix86
+
+mingw:
+ $(CC) -c $(CFLAGS) -DEMBEDDED $(SRCS) compat_win32.c
+ $(AR) -r lib$(PROG).a *.o && ranlib lib$(PROG).a
+ windres resources.rc resources.o
+ $(CC) $(CFLAGS) $(SRCS) compat_win32.c standalone.c resources.o -o $(PROG) $(LIBS) -lws2_32 -lcomdlg32 -lcomctl32
+
+man:
+ cat shttpd.1 | tbl | groff -man -Tascii | col -b > shttpd.1.txt
+ cat shttpd.1 | tbl | groff -man -Tascii | less
+
+clean:
+ rm -rf *.o *.core $(PROG) lib$(PROG).a