]> git.ipfire.org Git - thirdparty/squid.git/blame - src/Common.am
Fix test suite parameters after --enable-ssl change
[thirdparty/squid.git] / src / Common.am
CommitLineData
a2197d3a 1## Settings common to many Squid Makefiles
4fcc4dab 2
a2197d3a
AR
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.
4fcc4dab 5
a2197d3a 6## TODO: make this set by configure?
ee9215a4
AJ
7AM_CFLAGS = $(SQUID_CFLAGS)
8AM_CXXFLAGS = $(SQUID_CXXFLAGS)
4fcc4dab
AR
9DEFS = @DEFS@
10
a2197d3a 11## so that others can always use += for these variables
4fcc4dab 12CLEANFILES =
fe57027d
AR
13check_PROGRAMS =
14TESTS =
4fcc4dab
AR
15
16INCLUDES = \
17 -I$(top_srcdir) \
18 -I$(top_srcdir)/include \
25f98340 19 -I$(top_srcdir)/lib \
4fcc4dab 20 -I$(top_srcdir)/src \
ef7513ff 21 -I$(top_builddir)/include \
ee9215a4 22 $(SQUID_CPPUNIT_INC)
4fcc4dab 23
a53ea9b8
AJ
24## Kerberos headers require their include path.
25## Because we use libcompat for comm_err.h header protections ...
ee9215a4 26INCLUDES += $(KRB5INCS)
a53ea9b8 27
064d26a2
AJ
28## Loadable Modules requires LTDL include paths.
29## Because we need this to use the libray linking headers...
30if USE_LOADABLE_MODULES
31INCLUDES += $(INCLTDL)
32endif
33
a2197d3a
AR
34## make all compiled sources depend on generated files
35## XXX: Do we really need this? Does auto-dependency tracking work?
ef7513ff 36$(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
90e7860e 37
25f98340
AJ
38## Internal profiler is used even by some of the compat library stuff.
39if ENABLE_XPROF_STATS
40LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
41else
42LIBPROFILER=
43endif
44
1b6ba7c8 45## Because compatibility is almost universal. And the link order is important.
4de1e2da 46COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER)
c2cf387f
AJ
47
48## Some helpers are written in Perl and need the local shell defined properly
49subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)