]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Common.am
Merge from trunk rev.13584
[thirdparty/squid.git] / src / Common.am
1 ## Copyright (C) 1996-2014 The Squid Software Foundation and contributors
2 ##
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.
6 ##
7
8 ## Settings common to many Squid Makefiles
9
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.
12
13 ## TODO: make this set by configure?
14 AM_CFLAGS = $(SQUID_CFLAGS)
15 AM_CXXFLAGS = $(SQUID_CXXFLAGS)
16 DEFS = @DEFS@
17
18 ## so that others can always use += for these variables
19 CLEANFILES =
20 check_PROGRAMS =
21 TESTS =
22
23 AM_CPPFLAGS = \
24 -I$(top_srcdir) \
25 -I$(top_srcdir)/include \
26 -I$(top_srcdir)/lib \
27 -I$(top_srcdir)/src \
28 -I$(top_builddir)/include \
29 $(SQUID_CPPUNIT_INC)
30
31 ## Kerberos headers require their include path.
32 ## Because we use libcompat for comm_err.h header protections ...
33 AM_CPPFLAGS += $(KRB5INCS)
34
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)
39 endif
40
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
44
45 ## Internal profiler is used even by some of the compat library stuff.
46 if ENABLE_XPROF_STATS
47 LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
48 else
49 LIBPROFILER=
50 endif
51
52 ## Because compatibility is almost universal. And the link order is important.
53 COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER)
54
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)