source: rtems/cpukit/shttpd/Makefile.am @ 942c6bf

4.104.115
Last change on this file since 942c6bf was 942c6bf, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/29/10 at 05:17:21

Use SLIBHTTPD.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# DEPRECATED, don't use.
2
3include $(top_srcdir)/automake/compile.am
4
5if LIBSHTTPD
6include_shttpddir = $(includedir)/shttpd
7
8project_lib_LIBRARIES = libshttpd.a
9libshttpd_a_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_MD5
10
11# HACK ALERT:
12# prefix all non-public symbols with _shttp_
13# FIXME: There must be something better than this
14libshttpd_a_CPPFLAGS += -Dcheck_authorization=_shttpd_check_authorization
15libshttpd_a_CPPFLAGS += -Ddecode_url_encoded_string=_shttpd_decode_url_encoded_string
16libshttpd_a_CPPFLAGS += -Dedit_passwords=_shttpd_edit_passwords
17libshttpd_a_CPPFLAGS += -Delog=_shttpd_elog
18libshttpd_a_CPPFLAGS += -Dget_dir=_shttpd_get_dir
19libshttpd_a_CPPFLAGS += -Dget_file=_shttpd_get_file
20libshttpd_a_CPPFLAGS += -Dget_headers_len=_shttpd_get_headers_len
21libshttpd_a_CPPFLAGS += -Dget_mime_type=_shttpd_get_mime_type
22libshttpd_a_CPPFLAGS += -Dinit_from_argc_argv=_shttpd_init_from_argc_argv
23libshttpd_a_CPPFLAGS += -Dis_authorized_for_put=_shttpd_is_authorized_for_put
24libshttpd_a_CPPFLAGS += -Dis_registered_uri=_shttpd_is_registered_uri
25libshttpd_a_CPPFLAGS += -Dlog_access=_shttpd_log_access
26libshttpd_a_CPPFLAGS += -Dparse_headers=_shttpd_parse_headers
27libshttpd_a_CPPFLAGS += -Dput_dir=_shttpd_put_dir
28libshttpd_a_CPPFLAGS += -Dsend_authorization_request=_shttpd_send_authorization_request
29libshttpd_a_CPPFLAGS += -Dsend_server_error=_shttpd_send_server_error
30libshttpd_a_CPPFLAGS += -Dset_close_on_exec=_shttpd_set_close_on_exec
31libshttpd_a_CPPFLAGS += -Dset_mime_types=_shttpd_set_mime_types
32libshttpd_a_CPPFLAGS += -Dset_non_blocking_mode=_shttpd_set_non_blocking_mode
33libshttpd_a_CPPFLAGS += -Dsetup_embedded_stream=_shttpd_setup_embedded_stream
34libshttpd_a_CPPFLAGS += -Dstop_stream=_shttpd_stop_stream
35libshttpd_a_CPPFLAGS += -Dusage=_shttpd_usage
36
37libshttpd_a_CPPFLAGS += -Dknown_http_methods=_shttpd_known_http_methods
38libshttpd_a_CPPFLAGS += -Doptions=_shttpd_options
39libshttpd_a_CPPFLAGS += -Dio_file=_shttpd_io_file
40libshttpd_a_CPPFLAGS += -Dio_socket=_shttpd_io_socket
41libshttpd_a_CPPFLAGS += -Dio_embedded=_shttpd_io_embedded
42libshttpd_a_CPPFLAGS += -Dio_dir=_shttpd_io_dir
43libshttpd_a_CPPFLAGS += -Dio_cgi=_shttpd_io_cgi
44
45libshttpd_a_CPPFLAGS += -Dcurrent_time=_shttpd_current_time
46libshttpd_a_CPPFLAGS += -Dtz_offset=_shttpd_tz_offset
47
48SRCS=           string.c shttpd.c log.c auth.c md5.c \
49                cgi.c mime_type.c config.c \
50                io_file.c io_socket.c io_ssl.c io_emb.c io_dir.c io_cgi.c
51HDRS=           defs.h llist.h shttpd.h std_includes.h io.h md5.h ssl.h \
52                compat_unix.h compat_win32.h compat_rtems.h
53
54libshttpd_a_SOURCES = $(SRCS) $(HDRS)
55libshttpd_a_SOURCES += compat_rtems.c
56include_shttpd_HEADERS = shttpd.h
57
58# Possible flags: (in brackets are rough numbers for 'gcc -O2' on i386)
59# -DHAVE_MD5            - use system md5 library (-2kb)
60# -DNDEBUG              - strip off all debug code (-5kb)
61# -D_DEBUG              - build debug version (very noisy) (+6kb)
62# -DNO_CGI              - disable CGI support (-5kb)
63# -DNO_SSL              - disable SSL functionality (-2kb)
64# -DNO_AUTH             - disable authorization support (-4kb)
65# -DNO_GUI              - Win32 only. Build console version, no GUI
66# -DCONFIG=\"file\"     - use `file' as the default config file
67endif
68
69include $(srcdir)/preinstall.am
70include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.