1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
8 ## Settings common to many Squid Makefiles
10 ## This file should be included first in all src/subdir/Makefile.am
11 ## so it must not contain stuff specific to or bad for some subdirectories.
13 ## TODO: make this set by configure?
14 AM_CFLAGS = $(SQUID_CFLAGS)
15 AM_CXXFLAGS = $(SQUID_CXXFLAGS)
18 ## so that others can always use += for these variables
25 -I$(top_srcdir)/include \
28 -I$(top_builddir)/include \
31 ## Kerberos headers require their include path.
32 ## Because we use libcompat for comm_err.h header protections ...
33 AM_CPPFLAGS += $(KRB5INCS)
35 ## Loadable Modules requires LTDL include paths.
36 ## Because we need this to use the libray linking headers...
37 if ENABLE_LOADABLE_MODULES
38 AM_CPPFLAGS += $(INCLTDL)
41 ## make all compiled sources depend on generated files
42 ## XXX: Do we really need this? Does auto-dependency tracking work?
43 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
45 ## Internal profiler is used even by some of the compat library stuff.
47 LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
52 ## Because compatibility is almost universal. And the link order is important.
53 COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER)
55 ## Some helpers are written in Perl and need the local shell defined properly
56 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)