]> git.ipfire.org Git - thirdparty/squid.git/blob - src/http/Makefile.am
SourceLayout: move HttpMsg into libhttp as Http::Message
[thirdparty/squid.git] / src / http / Makefile.am
1 ## Copyright (C) 1996-2017 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 include $(top_srcdir)/src/Common.am
9 include $(top_srcdir)/src/TestHeaders.am
10
11 SUBDIRS = one url_rewriters
12 DIST_SUBDIRS = one url_rewriters
13
14 noinst_LTLIBRARIES = libhttp.la
15
16 libhttp_la_SOURCES = \
17 ContentLengthInterpreter.cc \
18 ContentLengthInterpreter.h \
19 forward.h \
20 Message.cc \
21 Message.h \
22 MethodType.cc \
23 MethodType.h \
24 ProtocolVersion.h \
25 RegisteredHeaders.h \
26 RegisteredHeaders.cc \
27 RegisteredHeadersHash.cci \
28 RequestMethod.cc \
29 RequestMethod.h \
30 StateFlags.h \
31 StatusCode.cc \
32 StatusCode.h \
33 StatusLine.cc \
34 StatusLine.h \
35 Stream.cc \
36 Stream.h
37
38 libhttp_la_LIBADD= one/libhttp1.la
39
40 MethodType.cc: MethodType.h $(top_srcdir)/src/mk-string-arrays.awk
41 ($(AWK) -f $(top_srcdir)/src/mk-string-arrays.awk sbuf=1 < $(srcdir)/MethodType.h | \
42 sed -e 's%METHOD_%%' -e 's%_C%-C%' >$@) || ($(RM) -f $@ && exit 1)
43
44 CLEANFILES += MethodType.cc
45
46 gperf-files: RegisteredHeadersHash.gperf
47 if test $(srcdir)/RegisteredHeadersHash.gperf -nt $(srcdir)/RegisteredHeadersHash.cci; then gperf -m 100000 $(srcdir)/RegisteredHeadersHash.gperf | sed 's/register //g' > $(srcdir)/RegisteredHeadersHash.cci; fi
48
49 EXTRA_DIST = RegisteredHeadersHash.gperf
50
51 .PHONY: gperf-files