Skip to content
Newer
Older
100644 136 lines (106 sloc) 3.07 KB
53c6a29 @klacke svn migr
authored Mar 20, 2007
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 Jan 5, 2010
11
12
13 ## the websocket code uses new modern bits stuff
35a5c1a @vinoski add configure detection of erts bits support
vinoski authored Dec 7, 2010
14 ifeq ($(BITS_SUPPORT),true)
15 BITSMODS=yaws_websockets
f5eb9d5 @klacke conditional compile of websockets
authored Jan 5, 2010
16 endif
17
18
53c6a29 @klacke svn migr
authored Mar 20, 2007
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 Aug 11, 2011
27 yaws_trace \
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored May 4, 2011
28 yaws_logger \
53c6a29 @klacke svn migr
authored Mar 20, 2007
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 au…
faal authored Apr 16, 2009
38 yaws_outmod \
53c6a29 @klacke svn migr
authored Mar 20, 2007
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 Apr 24, 2011
45 json json2 jsonrpc yaws_jsonrpc yaws_xmlrpc\
53c6a29 @klacke svn migr
authored Mar 20, 2007
46 haxe yaws_rpc \
a3f4fde @klacke Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored Jan 3, 2008
47 yaws_soap_srv yaws_soap_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cg…
authored Mar 10, 2008
48 authmod_gssapi \
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
49 yaws_appmod_cgi \
2fa66b0 @klacke cgi support
authored Jul 10, 2009
50 yaws_appmod_fcgi \
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored Apr 16, 2011
51 yaws_sendfile \
9317a44 @oliv3 Compile yaws_stats
oliv3 authored Jun 12, 2009
52 yaws_sup_restarts \
4248f8d @vinoski move yaws_multipart.erl to src dir and incorporate klacke's changes
vinoski authored Sep 29, 2009
53 yaws_stats \
43d6620 Adding yaws_vdir.erl to the Makefile.
Torbjorn Tornkvist authored Oct 7, 2010
54 yaws_vdir \
7fdc54a @davide HTML5 Web Sockets support.
davide authored Dec 18, 2009
55 yaws_multipart \
c650d77 @capflam add shaper directive to control access (capflam)
capflam authored May 4, 2011
56 yaws_shaper \
b6e60f0 @vinoski revert "remove support for SOAP DIME attachments"
vinoski authored Jul 6, 2011
57 yaws_dime \
23c0c13 @klacke Added support to generate and check strict xhtml output
authored Aug 2, 2011
58 yaws_exhtml \
f5eb9d5 @klacke conditional compile of websockets
authored Jan 5, 2010
59 $(BITSMODS)
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
60
53c6a29 @klacke svn migr
authored Mar 20, 2007
61
62
bc1a16b @capflam add yaws.appup.src template file (capflam)
capflam authored May 3, 2011
63 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app ../ebin/yaws.appup
e3f358e @vinoski treat src warnings as errors
vinoski authored Dec 19, 2011
64 ERLC_FLAGS+=-Werror $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored Mar 20, 2007
65
66 #
67 # Targets
68 #
69
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
70 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29 @klacke svn migr
authored Mar 20, 2007
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 Apr 16, 2011
77 ../ebin/yaws_sendfile.$(EMULATOR): yaws_configure.hrl
53c6a29 @klacke svn migr
authored Mar 20, 2007
78
79 yaws_generated.erl: yaws_generated.template ../vsn.mk
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
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 Mar 20, 2007
83
cd68727 @vinoski add --disable-sendfile option to configure, fix src/Makefile to clean…
vinoski authored Jan 29, 2009
84 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
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 us…
authored Mar 10, 2008
90 ## need to differentiate between local install and not
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
91 .PHONY: regen
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored Mar 10, 2008
92 regen:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
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 Mar 20, 2007
96
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
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 Mar 20, 2007
101
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
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 Mar 20, 2007
106
107 debug:
108 $(MAKE) TYPE=debug
109
110 clean:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
111 rm -f $(EBIN_FILES) yaws_generated.erl charset.def \
378da72 @vinoski clean src/mime_type_c.beam during "make clean"
vinoski authored Dec 20, 2011
112 mime_types.erl yaws_configure.hrl mime_type_c.beam
53c6a29 @klacke svn migr
authored Mar 20, 2007
113
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored Mar 10, 2008
114 install: regen all docsinstall
da61d09 @klacke cygwin install patch by Bill Robertsson
authored May 15, 2008
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 Mar 20, 2007
124
125 docsinstall:
da61d09 @klacke cygwin install patch by Bill Robertsson
authored May 15, 2008
126 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
127 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 @klacke svn migr
authored Mar 20, 2007
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.