]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/Common.am
SourceFormat Enforcement
[thirdparty/squid.git] / src / Common.am
index 00e41356ecb347dda23bb0882c934b6aacd0f099..cf0b4af11fb4ba3213e0c07c11f53213f7ed498d 100644 (file)
@@ -1,3 +1,10 @@
+## Copyright (C) 1996-2015 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.
+##
+
 ## Settings common to many Squid Makefiles
 
 ## This file should be included first in all src/subdir/Makefile.am
@@ -13,26 +20,37 @@ CLEANFILES =
 check_PROGRAMS = 
 TESTS =
 
-INCLUDES = \
+AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -I$(top_srcdir)/include \
+       -I$(top_srcdir)/lib \
        -I$(top_srcdir)/src \
        -I$(top_builddir)/include \
        $(SQUID_CPPUNIT_INC)
 
 ## Kerberos headers require their include path.
 ## Because we use libcompat for comm_err.h header protections ...
-INCLUDES += $(KRB5INCS)
+AM_CPPFLAGS += $(KRB5INCS)
+
+## Loadable Modules requires LTDL include paths.
+## Because we need this to use the libray linking headers...
+if ENABLE_LOADABLE_MODULES
+AM_CPPFLAGS += $(INCLTDL)
+endif
 
 ## make all compiled sources depend on generated files
 ## XXX: Do we really need this? Does auto-dependency tracking work?
 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
 
+## Internal profiler is used even by some of the compat library stuff.
+if ENABLE_XPROF_STATS
+LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
+else
+LIBPROFILER=
+endif
+
 ## Because compatibility is almost universal. And the link order is important.
-## NP: libmisc util.cc depends on rint from math library
-COMPAT_LIB = \
-       -L$(top_builddir)/lib -lmiscutil \
-       $(top_builddir)/compat/libcompat.la
+COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER)
 
 ## Some helpers are written in Perl and need the local shell defined properly
 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)