]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/Makefile.am
Detach automke system from using -I.
[thirdparty/squid.git] / compat / Makefile.am
CommitLineData
f04e1182
AJ
1#
2# Makefile for the Squid Portability Library
3#
4
5# Housekeeping, shared by all Squid Makefiles.
6# TODO: make this set by configure?
7AM_CFLAGS = @SQUID_CFLAGS@
8AM_CXXFLAGS = @SQUID_CXXFLAGS@
9DEFS = @DEFS@
10CLEANFILES =
11
6c7ce377
AJ
12INCLUDES = \
13 -I$(top_srcdir) \
14 -I$(top_srcdir)/src \
15 -I$(top_srcdir)/include \
189f1e66 16 -I$(top_builddir)/include \
6c7ce377
AJ
17 -I$(top_builddir)/lib \
18 @SQUID_CPPUNIT_INC@
19
f04e1182
AJ
20$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
21
22# Ideally this would be 100% inline functions and macro wrappers.
23
24# Port Specific Configurations
25
5cb7d756 26noinst_LTLIBRARIES = libcompat.la
f04e1182 27
5cb7d756 28libcompat_la_SOURCES = \
ea9d149b 29 assert.h \
f04e1182 30 compat.h \
f04e1182 31 compat_shared.h \
09564478 32 fdsetsize.h \
ea9d149b 33 osdetect.h \
09564478
AJ
34 stdvarargs.h \
35 valgrind.h \
f04e1182 36 \
09564478 37 os/aix.h \
22968e37 38 os/dragonfly.h \
09564478
AJ
39 os/freebsd.h \
40 os/hpux.h \
41 os/linux.h \
42 os/mswin.h \
43 os/next.h \
44 os/openbsd.h \
22968e37 45 os/os2.h \
09564478
AJ
46 os/qnx.h \
47 os/sgi.h \
48 os/solaris.h \
49 os/sunos.h \
50 os/windows.h \
f04e1182 51 \
ea9d149b 52 assert.cc \
cc937513 53 compat.cc \
7cc380be 54 GnuRegex.h \
cc937513 55 GnuRegex.c
f04e1182
AJ
56
57
58check_PROGRAMS= testHeaders
59TESTS= $(check_PROGRAMS)
60
61## Special Universal .h dependency test script
62## aborts if error encountered
eee95dfe
AJ
63testHeaders: $(top_srcdir)/compat/*.h $(top_srcdir)/compat/os/*.h
64 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/compat/" || exit 1
65 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/compat/os/" || exit 1
f04e1182
AJ
66
67## No such file...
68testHeaders.c:
69 touch testHeaders.c
70CLEANFILES += testHeaders.c