Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 136 lines (106 sloc) 3.161 kb
53c6a29 @klacke svn migr
authored
1 include ../include.mk
2
3 ifeq ($(TYPE),debug)
4 DEBUG_FLAGS = -Ddebug +debug_info
5 else
6 DEBUG_FLAGS =
7 endif
8
9 include ../vsn.mk
10 VSN=$(YAWS_VSN)
f5eb9d5 @klacke conditional compile of websockets
authored
11
12
13 ## the websocket code uses new modern bits stuff
35a5c1a @vinoski add configure detection of erts bits support
vinoski authored
14 ifeq ($(BITS_SUPPORT),true)
15 BITSMODS=yaws_websockets
f5eb9d5 @klacke conditional compile of websockets
authored
16 endif
17
18
53c6a29 @klacke svn migr
authored
19 MODULES=yaws \
20 yaws_app \
21 yaws_ticker \
22 yaws_config \
23 yaws_server \
24 yaws_sup \
25 yaws_api \
26 yaws_log \
082d55c @capflam Add new module to deal with trace files
capflam authored
27 yaws_trace \
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
28 yaws_logger \
53c6a29 @klacke svn migr
authored
29 yaws_ls \
30 yaws_debug \
31 yaws_compile \
32 yaws_ctl \
33 yaws_cgi \
34 yaws_zlib \
35 yaws_generated \
36 mime_types \
37 yaws_session_server \
c1cea99 @faal Changed the way authentication is done, added support for multiple authe...
faal authored
38 yaws_outmod \
53c6a29 @klacke svn migr
authored
39 yaws_revproxy \
40 yaws_html \
41 yaws_log_file_h \
42 yaws_rss \
43 yaws_dav \
44 yaws_pam \
96534b2 @vinoski replace json.erl with json2.erl to fix issue 50
vinoski authored
45 json json2 jsonrpc yaws_jsonrpc yaws_xmlrpc\
53c6a29 @klacke svn migr
authored
46 haxe yaws_rpc \
08cee94 @kalski added soap12 capability
kalski authored
47 yaws_soap_srv yaws_soap_lib yaws_soap12_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cgi.y...
authored
48 authmod_gssapi \
12471ad @klacke added configure support for sendfile
authored
49 yaws_appmod_cgi \
2fa66b0 @klacke cgi support
authored
50 yaws_appmod_fcgi \
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored
51 yaws_sendfile \
9317a44 @oliv3 Compile yaws_stats
oliv3 authored
52 yaws_sup_restarts \
4248f8d @vinoski move yaws_multipart.erl to src dir and incorporate klacke's changes
vinoski authored
53 yaws_stats \
43d6620 Adding yaws_vdir.erl to the Makefile.
Torbjorn Tornkvist authored
54 yaws_vdir \
7fdc54a @davide HTML5 Web Sockets support.
davide authored
55 yaws_multipart \
c650d77 @capflam add shaper directive to control access (capflam)
capflam authored
56 yaws_shaper \
b6e60f0 @vinoski revert "remove support for SOAP DIME attachments"
vinoski authored
57 yaws_dime \
23c0c13 @klacke Added support to generate and check strict xhtml output
authored
58 yaws_exhtml \
f5eb9d5 @klacke conditional compile of websockets
authored
59 $(BITSMODS)
12471ad @klacke added configure support for sendfile
authored
60
53c6a29 @klacke svn migr
authored
61
62
bc1a16b @capflam add yaws.appup.src template file (capflam)
capflam authored
63 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app ../ebin/yaws.appup
e3f358e @vinoski treat src warnings as errors
vinoski authored
64 ERLC_FLAGS+=-Werror $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored
65
66 #
67 # Targets
68 #
69
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
70 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29 @klacke svn migr
authored
71
72 dav:
73 $(MAKE) MODULES="$(MODULES) yaws_dav"
74
75 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
76
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored
77 ../ebin/yaws_sendfile.$(EMULATOR): yaws_configure.hrl
53c6a29 @klacke svn migr
authored
78
79 yaws_generated.erl: yaws_generated.template ../vsn.mk
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
80 . ../vsn.mk ; \
81 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
82 ../scripts/gen-yaws-generated true > yaws_generated.erl
53c6a29 @klacke svn migr
authored
83
cd68727 @vinoski add --disable-sendfile option to configure, fix src/Makefile to clean ya...
vinoski authored
84 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad @klacke added configure support for sendfile
authored
85 if [ $(HAVE_SENDFILE) = "true" ]; then \
86 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
87 else touch yaws_configure.hrl; fi
88
89
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
90 ## need to differentiate between local install and not
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
91 .PHONY: regen
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
92 regen:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
93 . ../vsn.mk ; \
94 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
95 ../scripts/gen-yaws-generated false > yaws_generated.erl
53c6a29 @klacke svn migr
authored
96
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
97 charset.def:
98 if [ -n "$(DEFAULT_CHARSET)" ]; then \
99 echo $(DEFAULT_CHARSET) > charset.def; \
100 else rm -f charset.def ; touch charset.def; fi
53c6a29 @klacke svn migr
authored
101
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
102 mime_type_c.beam: mime_type_c.erl
103
104 mime_types.erl: mime.types charset.def mime_type_c.beam
105 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
53c6a29 @klacke svn migr
authored
106
107 debug:
108 $(MAKE) TYPE=debug
109
110 clean:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
111 rm -f $(EBIN_FILES) yaws_generated.erl charset.def \
378da72 @vinoski clean src/mime_type_c.beam during "make clean"
vinoski authored
112 mime_types.erl yaws_configure.hrl mime_type_c.beam
53c6a29 @klacke svn migr
authored
113
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
114 install: regen all docsinstall
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
115 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
116 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
117 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
118 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
119 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
120 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
121 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
122 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
123 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
53c6a29 @klacke svn migr
authored
124
125 docsinstall:
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
126 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
127 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 @klacke svn migr
authored
128
129 tags:
130 erl -noshell -pa ../ebin -s yaws_debug mktags
131
132 xref:
133 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
134
135
Something went wrong with that request. Please try again.