## 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.
## Please see the COPYING and CONTRIBUTORS files for details.
##

include $(top_srcdir)/src/Common.am
include $(top_srcdir)/src/TestHeaders.am

noinst_LTLIBRARIES = libanyp.la

libanyp_la_SOURCES = \
	forward.h \
	PortCfg.cc \
	PortCfg.h \
	ProtocolType.cc \
	ProtocolType.h \
	ProtocolVersion.h \
	TrafficMode.h \
	Uri.cc \
	Uri.h \
	UriScheme.cc \
	UriScheme.h

ProtocolType.cc: ProtocolType.h $(top_srcdir)/src/mk-string-arrays.awk
	($(AWK) -f $(top_srcdir)/src/mk-string-arrays.awk <$(srcdir)/ProtocolType.h | sed -e 's%PROTO_%%' >$@) || ($(RM) -f $@ && exit 1)

CLEANFILES += ProtocolType.cc
