1 ## Settings common to many Squid Makefiles
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.
6 ## TODO: make this set by configure?
7 AM_CFLAGS = $(SQUID_CFLAGS)
8 AM_CXXFLAGS = $(SQUID_CXXFLAGS)
11 ## so that others can always use += for these variables
18 -I$(top_srcdir)/include \
20 -I$(top_builddir)/include \
23 ## Kerberos headers require their include path.
24 ## Because we use libcompat for comm_err.h header protections ...
25 INCLUDES += $(KRB5INCS)
27 ## Loadable Modules requires LTDL include paths.
28 ## Because we need this to use the libray linking headers...
29 if USE_LOADABLE_MODULES
30 INCLUDES += $(INCLTDL)
33 ## make all compiled sources depend on generated files
34 ## XXX: Do we really need this? Does auto-dependency tracking work?
35 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
37 ## Because compatibility is almost universal. And the link order is important.
38 COMPAT_LIB = -L$(top_builddir)/compat -lcompat-squid
40 ## Some helpers are written in Perl and need the local shell defined properly
41 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)