]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - tools/squidclient/Makefile.am
Source Format Enforcement (#763)
[thirdparty/squid.git] / tools / squidclient / Makefile.am
index bd90808b2b52f9b169a56cd266de5f2041dcc2fe..3a76c7dc86a5a4c909e0cd2eef01232d07c93a96 100644 (file)
@@ -1,17 +1,24 @@
-include $(top_srcdir)/src/Common.am
+## Copyright (C) 1996-2021 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.
+##
 
-AUTOMAKE_OPTIONS = subdir-objects
+include $(top_srcdir)/src/Common.am
 
-SUBDIRS = 
+SUBDIRS =
 EXTRA_DIST = squidclient.1
 man_MANS = squidclient.1
-DISTCLEANFILES = 
+DISTCLEANFILES =
 
 LDADD = \
        $(top_builddir)/src/ip/libip.la \
+       $(top_builddir)/src/base/libbase.la \
        $(top_builddir)/lib/libmiscencoding.la \
        $(top_builddir)/lib/libmiscutil.la \
        $(COMPAT_LIB) \
+       $(LIBGNUTLS_LIBS) \
        $(NETTLELIB) \
        $(KRB5LIBS) \
        $(XTRA_LIBS)
@@ -21,32 +28,44 @@ include $(top_srcdir)/doc/manuals/Substitute.am
 ## Several files need to be shared but we cannot depend on the other
 ## directories to be built.
 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
-       cp $(top_srcdir)/test-suite/test_tools.cc .
+       cp $(top_srcdir)/test-suite/test_tools.cc $@
 
-stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
-       cp $(top_srcdir)/src/tests/stub_debug.cc .
+tests/stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
+       cp $(top_srcdir)/src/tests/stub_debug.cc $@
 
 time.cc: $(top_srcdir)/src/time.cc
-       cp $(top_srcdir)/src/time.cc .
+       cp $(top_srcdir)/src/time.cc $@
+
+tests/stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc
+       cp $(top_srcdir)/src/tests/stub_libmem.cc $@
+
+tests/STUB.h: $(top_srcdir)/src/tests/STUB.h
+       cp $(top_srcdir)/src/tests/STUB.h $@
 
 # stock tools for unit tests - library independent versions of dlink_list
 # etc.
 # globals.cc is needed by test_tools.cc.
 # Neither of these should be disted from here.
 TESTSOURCES= test_tools.cc
-CLEANFILES += test_tools.cc stub_debug.cc time.cc
+CLEANFILES += test_tools.cc tests/stub_debug.cc time.cc tests/stub_libmem.cc tests/STUB.h
 
 ## ##### squidclient  #####
 
 bin_PROGRAMS = squidclient
 
 squidclient_SOURCES = \
-       gssapi_support.cc \
-       gssapi_support.h \
        Parameters.h \
        Ping.cc \
        Ping.h \
+       Transport.cc \
+       Transport.h \
+       gssapi_support.cc \
+       gssapi_support.h \
        squidclient.cc \
-       stub_debug.cc \
        test_tools.cc \
        time.cc
+
+nodist_squidclient_SOURCES = \
+       tests/stub_debug.cc \
+       tests/stub_libmem.cc \
+       tests/STUB.h