]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Common.am
Merged from trunk r13474.
[thirdparty/squid.git] / src / Common.am
1 ## Settings common to many Squid Makefiles
2
3 ## This file should be included first in all src/subdir/Makefile.am
4 ## so it must not contain stuff specific to or bad for some subdirectories.
5
6 ## TODO: make this set by configure?
7 AM_CFLAGS = $(SQUID_CFLAGS)
8 AM_CXXFLAGS = $(SQUID_CXXFLAGS)
9 DEFS = @DEFS@
10
11 ## so that others can always use += for these variables
12 CLEANFILES =
13 check_PROGRAMS =
14 TESTS =
15
16 INCLUDES = \
17 -I$(top_srcdir) \
18 -I$(top_srcdir)/include \
19 -I$(top_srcdir)/lib \
20 -I$(top_srcdir)/src \
21 -I$(top_builddir)/include \
22 $(SQUID_CPPUNIT_INC)
23
24 ## Kerberos headers require their include path.
25 ## Because we use libcompat for comm_err.h header protections ...
26 INCLUDES += $(KRB5INCS)
27
28 ## Loadable Modules requires LTDL include paths.
29 ## Because we need this to use the libray linking headers...
30 if ENABLE_LOADABLE_MODULES
31 INCLUDES += $(INCLTDL)
32 endif
33
34 ## make all compiled sources depend on generated files
35 ## XXX: Do we really need this? Does auto-dependency tracking work?
36 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
37
38 ## Internal profiler is used even by some of the compat library stuff.
39 if ENABLE_XPROF_STATS
40 LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
41 else
42 LIBPROFILER=
43 endif
44
45 ## Because compatibility is almost universal. And the link order is important.
46 COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER)
47
48 ## Some helpers are written in Perl and need the local shell defined properly
49 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)