]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/Makefile.am
Compat: cleanup several config.h hacks
[thirdparty/squid.git] / compat / Makefile.am
1 #
2 # Makefile for the Squid Portability Library
3 #
4
5 include $(top_srcdir)/src/Common.am
6
7
8 # Ideally this would be 100% inline functions and macro wrappers.
9
10 # Port Specific Configurations
11
12 noinst_LIBRARIES = libcompat-squid.a
13 libcompat_squid_a_SOURCES = \
14 assert.cc \
15 assert.h \
16 compat.cc \
17 compat.h \
18 compat_shared.h \
19 cpu.h \
20 debug.cc \
21 debug.h \
22 drand48.h \
23 eui64_aton.h \
24 fdsetsize.h \
25 getaddrinfo.h \
26 getnameinfo.h \
27 GnuRegex.c \
28 GnuRegex.h \
29 inet_ntop.h \
30 inet_pton.h \
31 initgroups.h \
32 osdetect.h \
33 psignal.h \
34 stdvarargs.h \
35 strnstr.cc \
36 strsep.h \
37 strtoll.h \
38 tempnam.h \
39 types.h \
40 unsafe.h \
41 valgrind.h \
42 xalloc.cc \
43 xalloc.h \
44 xis.h \
45 xstrerror.cc \
46 xstrerror.h \
47 xstring.cc \
48 xstring.h \
49 xstrto.cc \
50 xstrto.h \
51 \
52 os/aix.h \
53 os/dragonfly.h \
54 os/freebsd.h \
55 os/hpux.h \
56 os/linux.h \
57 os/mswin.h \
58 os/macosx.h \
59 os/netbsd.h \
60 os/next.h \
61 os/openbsd.h \
62 os/opensolaris_10_netdb.h \
63 os/os2.h \
64 os/qnx.h \
65 os/sgi.h \
66 os/solaris.h \
67 os/sunos.h \
68 os/windows.h
69
70 libcompat_squid_a_LIBADD= $(LIBOBJS)
71
72 check_PROGRAMS += testPreCompiler
73 TESTS += testPreCompiler
74
75 testPreCompiler_SOURCES= \
76 testPreCompiler.h \
77 testPreCompiler.cc \
78 $(top_srcdir)/src/tests/testMain.cc
79 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
80 testPreCompiler_LDFLAGS=
81
82 # os/ subdir prevents us using src/TestHeaders.am
83 #
84 TESTS += testHeaders
85
86 ## Special Universal .h dependency test script
87 ## aborts if error encountered
88 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
89 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
90
91 CLEANFILES += testHeaders
92
93 .PHONY: testHeaders