]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/repl/Makefile.am
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / repl / Makefile.am
index 0a490e3603141631cc579e07391add282a09da4b..db988dfe4ee545fedc37a0d2952df37c26b75ff5 100644 (file)
@@ -1,20 +1,33 @@
-#  Makefile for storage modules in the Squid Object Cache server
-#
-#  $Id: Makefile.am,v 1.4 2002/10/19 01:00:27 robertc Exp $
-#
+## 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.
+##
 
-AUTOMAKE_OPTIONS = subdir-objects
-AM_CFLAGS = -Werror -Wall
-AM_CXXFLAGS = -Werror -Wall
+include $(top_srcdir)/src/Common.am
 
-# No recursion is needed for the subdirs, we build from here. // @REPL_POLICIES@
+## we need our local files too (but avoid -I. at all costs)
+AM_CPPFLAGS += -I$(srcdir)
+
+# No recursion is needed for the subdirs, we build from here.
 
 EXTRA_LIBRARIES = liblru.a libheap.a
-noinst_LIBRARIES = @REPL_LIBS@
+noinst_LIBRARIES = $(REPL_LIBS)
 
 liblru_a_SOURCES = lru/store_repl_lru.cc
 libheap_a_SOURCES = heap/store_heap_replacement.h heap/store_heap_replacement.cc heap/store_repl_heap.cc
 
-INCLUDES      = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src/
 
+## Until such time as we have a makefile in src/repl/heap etc.
+TESTS += testHeaders
+
+## Special Universal .h dependency test script
+## aborts if error encountered
+testHeaders: $(srcdir)/heap/*.h
+       $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
+## ./ has no .h files.
+## ./lru/ has no .h files.
+
+CLEANFILES += testHeaders
+.PHONY: testHeaders