]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http/Makefile.am
Source Format Enforcement (#665)
[thirdparty/squid.git] / src / http / Makefile.am
index 03cff1ef68f2879115b19fbac2125c9eef30578d..8854c81e041b5b6d5f88f87cf3468ed2af736ff3 100644 (file)
@@ -1,4 +1,4 @@
-## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
 ##
 ## Squid software is distributed under GPLv2+ license and includes
 ## contributions from numerous individuals and organizations.
@@ -8,34 +8,44 @@
 include $(top_srcdir)/src/Common.am
 include $(top_srcdir)/src/TestHeaders.am
 
-SUBDIRS = one
-DIST_SUBDIRS = one
+SUBDIRS = one url_rewriters
+DIST_SUBDIRS = one url_rewriters
 
-noinst_LTLIBRARIES = libsquid-http.la
+noinst_LTLIBRARIES = libhttp.la
 
-libsquid_http_la_SOURCES = \
-       forward.h \
+libhttp_la_SOURCES = \
+       ContentLengthInterpreter.cc \
+       ContentLengthInterpreter.h \
+       Message.cc \
+       Message.h \
        MethodType.cc \
        MethodType.h \
        ProtocolVersion.h \
-       RegisteredHeaders.h \
        RegisteredHeaders.cc \
+       RegisteredHeaders.h \
        RegisteredHeadersHash.cci \
-       RegisteredHeadersHash.gperf \
        RequestMethod.cc \
        RequestMethod.h \
+       StateFlags.h \
        StatusCode.cc \
        StatusCode.h \
        StatusLine.cc \
-       StatusLine.h
+       StatusLine.h \
+       Stream.cc \
+       Stream.h \
+       forward.h
 
-libsquid_http_la_LIBADD= one/libhttp1.la
+libhttp_la_LIBADD= one/libhttp1.la
 
 MethodType.cc: MethodType.h $(top_srcdir)/src/mk-string-arrays.awk
        ($(AWK) -f $(top_srcdir)/src/mk-string-arrays.awk sbuf=1 < $(srcdir)/MethodType.h | \
                sed -e 's%METHOD_%%' -e 's%_C%-C%' >$@) || ($(RM) -f $@ && exit 1)
 
-RegisteredHeadersHash.cci: RegisteredHeadersHash.gperf
-       gperf --output-file=$@ -m 100000 $<
-
 CLEANFILES += MethodType.cc
+
+gperf-files: RegisteredHeadersHash.gperf
+       if test $(srcdir)/RegisteredHeadersHash.gperf -nt $(srcdir)/RegisteredHeadersHash.cci; then gperf -m 100000 $(srcdir)/RegisteredHeadersHash.gperf | sed 's/register //g' > $(srcdir)/RegisteredHeadersHash.cci; fi
+
+EXTRA_DIST = RegisteredHeadersHash.gperf
+
+.PHONY: gperf-files