]>
Commit | Line | Data |
---|---|---|
bde978a6 | 1 | ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
a2197d3a | 8 | ## Settings common to many Squid Makefiles |
4fcc4dab | 9 | |
a2197d3a AR |
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. | |
4fcc4dab | 12 | |
a2197d3a | 13 | ## TODO: make this set by configure? |
ee9215a4 AJ |
14 | AM_CFLAGS = $(SQUID_CFLAGS) |
15 | AM_CXXFLAGS = $(SQUID_CXXFLAGS) | |
4fcc4dab AR |
16 | DEFS = @DEFS@ |
17 | ||
a2197d3a | 18 | ## so that others can always use += for these variables |
4fcc4dab | 19 | CLEANFILES = |
fe57027d AR |
20 | check_PROGRAMS = |
21 | TESTS = | |
4fcc4dab | 22 | |
01a1acbc | 23 | AM_CPPFLAGS = \ |
4fcc4dab AR |
24 | -I$(top_srcdir) \ |
25 | -I$(top_srcdir)/include \ | |
25f98340 | 26 | -I$(top_srcdir)/lib \ |
4fcc4dab | 27 | -I$(top_srcdir)/src \ |
ef7513ff | 28 | -I$(top_builddir)/include \ |
ee9215a4 | 29 | $(SQUID_CPPUNIT_INC) |
4fcc4dab | 30 | |
a53ea9b8 AJ |
31 | ## Kerberos headers require their include path. |
32 | ## Because we use libcompat for comm_err.h header protections ... | |
01a1acbc | 33 | AM_CPPFLAGS += $(KRB5INCS) |
a53ea9b8 | 34 | |
064d26a2 AJ |
35 | ## Loadable Modules requires LTDL include paths. |
36 | ## Because we need this to use the libray linking headers... | |
cb5569cd | 37 | if ENABLE_LOADABLE_MODULES |
01a1acbc | 38 | AM_CPPFLAGS += $(INCLTDL) |
064d26a2 AJ |
39 | endif |
40 | ||
a2197d3a AR |
41 | ## make all compiled sources depend on generated files |
42 | ## XXX: Do we really need this? Does auto-dependency tracking work? | |
ef7513ff | 43 | $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h |
90e7860e | 44 | |
25f98340 AJ |
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 | ||
1b6ba7c8 | 52 | ## Because compatibility is almost universal. And the link order is important. |
4de1e2da | 53 | COMPAT_LIB = $(top_builddir)/compat/libcompat-squid.la $(LIBPROFILER) |
c2cf387f AJ |
54 | |
55 | ## Some helpers are written in Perl and need the local shell defined properly | |
0dfa283b | 56 | subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1) |