Skip to content
Newer
Older
100644 132 lines (102 sloc) 2.97 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 \
27 yaws_ls \
28 yaws_debug \
29 yaws_compile \
30 yaws_ctl \
31 yaws_cgi \
32 yaws_zlib \
33 yaws_generated \
34 mime_types \
35 yaws_session_server \
c1cea99 @faal Changed the way authentication is done, added support for multiple au…
faal authored Apr 16, 2009
36 yaws_outmod \
53c6a29 @klacke svn migr
authored Mar 20, 2007
37 yaws_revproxy \
38 yaws_html \
39 yaws_log_file_h \
40 yaws_rss \
41 yaws_dav \
42 yaws_pam \
96534b2 @vinoski replace json.erl with json2.erl to fix issue 50
vinoski authored Apr 24, 2011
43 json json2 jsonrpc yaws_jsonrpc yaws_xmlrpc\
53c6a29 @klacke svn migr
authored Mar 20, 2007
44 haxe yaws_rpc \
a3f4fde @klacke Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored Jan 3, 2008
45 yaws_soap_srv yaws_soap_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cg…
authored Mar 10, 2008
46 authmod_gssapi \
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
47 yaws_appmod_cgi \
2fa66b0 @klacke cgi support
authored Jul 10, 2009
48 yaws_appmod_fcgi \
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored Apr 16, 2011
49 yaws_sendfile \
9317a44 @oliv3 Compile yaws_stats
oliv3 authored Jun 12, 2009
50 yaws_sup_restarts \
4248f8d @vinoski move yaws_multipart.erl to src dir and incorporate klacke's changes
vinoski authored Sep 29, 2009
51 yaws_stats \
43d6620 Adding yaws_vdir.erl to the Makefile.
Torbjorn Tornkvist authored Oct 7, 2010
52 yaws_vdir \
7fdc54a @davide HTML5 Web Sockets support.
davide authored Dec 18, 2009
53 yaws_multipart \
f5eb9d5 @klacke conditional compile of websockets
authored Jan 5, 2010
54 $(BITSMODS)
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
55
53c6a29 @klacke svn migr
authored Mar 20, 2007
56
57
58 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app
5b596d7 @klacke added support for GSSAPI through a patch by Mikale Magnusson
authored Sep 23, 2007
59 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored Mar 20, 2007
60
61 #
62 # Targets
63 #
64
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
65 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29 @klacke svn migr
authored Mar 20, 2007
66
67 dav:
68 $(MAKE) MODULES="$(MODULES) yaws_dav"
69
70 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
71
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored Apr 16, 2011
72 ../ebin/yaws_sendfile.$(EMULATOR): yaws_configure.hrl
53c6a29 @klacke svn migr
authored Mar 20, 2007
73
74 yaws_generated.erl: yaws_generated.template ../vsn.mk
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
75 . ../vsn.mk ; \
76 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
77 ../scripts/gen-yaws-generated true > yaws_generated.erl
53c6a29 @klacke svn migr
authored Mar 20, 2007
78
cd68727 @vinoski add --disable-sendfile option to configure, fix src/Makefile to clean…
vinoski authored Jan 29, 2009
79 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad @klacke added configure support for sendfile
authored Dec 20, 2008
80 set -x; \
81 if [ $(HAVE_SENDFILE) = "true" ]; then \
82 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
83 else touch yaws_configure.hrl; fi
84
85
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored Mar 10, 2008
86 ## need to differentiate between local install and not
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
87 .PHONY: regen
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored Mar 10, 2008
88 regen:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
89 . ../vsn.mk ; \
90 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
91 ../scripts/gen-yaws-generated false > yaws_generated.erl
53c6a29 @klacke svn migr
authored Mar 20, 2007
92
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
93 charset.def:
94 if [ -n "$(DEFAULT_CHARSET)" ]; then \
95 echo $(DEFAULT_CHARSET) > charset.def; \
96 else rm -f charset.def ; touch charset.def; fi
53c6a29 @klacke svn migr
authored Mar 20, 2007
97
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
98 mime_type_c.beam: mime_type_c.erl
99
100 mime_types.erl: mime.types charset.def mime_type_c.beam
101 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
53c6a29 @klacke svn migr
authored Mar 20, 2007
102
103 debug:
104 $(MAKE) TYPE=debug
105
106 clean:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
107 rm -f $(EBIN_FILES) yaws_generated.erl charset.def \
108 mime_types.erl yaws_configure.hrl
53c6a29 @klacke svn migr
authored Mar 20, 2007
109
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored Mar 10, 2008
110 install: regen all docsinstall
da61d09 @klacke cygwin install patch by Bill Robertsson
authored May 15, 2008
111 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
112 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
113 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
114 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
115 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
116 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
117 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
118 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
119 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
53c6a29 @klacke svn migr
authored Mar 20, 2007
120
121 docsinstall:
da61d09 @klacke cygwin install patch by Bill Robertsson
authored May 15, 2008
122 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
123 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 @klacke svn migr
authored Mar 20, 2007
124
125 tags:
126 erl -noshell -pa ../ebin -s yaws_debug mktags
127
128 xref:
129 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
130
131
Something went wrong with that request. Please try again.