]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/Makefile.am
Merged from parent (trunk r11623, v3.2.0.10+).
[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 cppunit.h \
21 debug.cc \
22 debug.h \
23 drand48.h \
24 eui64_aton.h \
25 fdsetsize.h \
26 getaddrinfo.h \
27 getnameinfo.h \
28 GnuRegex.c \
29 GnuRegex.h \
30 inet_ntop.h \
31 inet_pton.h \
32 initgroups.h \
33 osdetect.h \
34 psignal.h \
35 stdio.h \
36 stdvarargs.h \
37 strnstr.cc \
38 strsep.h \
39 strtoll.h \
40 tempnam.h \
41 types.h \
42 unsafe.h \
43 valgrind.h \
44 xalloc.cc \
45 xalloc.h \
46 xis.h \
47 xstrerror.cc \
48 xstrerror.h \
49 xstring.cc \
50 xstring.h \
51 xstrto.cc \
52 xstrto.h \
53 \
54 os/aix.h \
55 os/dragonfly.h \
56 os/freebsd.h \
57 os/hpux.h \
58 os/linux.h \
59 os/macosx.h \
60 os/mswin.h \
61 mswin.cc \
62 os/netbsd.h \
63 os/next.h \
64 os/openbsd.h \
65 os/opensolaris_10_netdb.h \
66 os/os2.h \
67 os/qnx.h \
68 os/sgi.h \
69 os/solaris.h \
70 os/sunos.h \
71 os/windows.h
72
73 libcompat_squid_a_LIBADD= $(LIBOBJS)
74
75 check_PROGRAMS += testPreCompiler
76 TESTS += testPreCompiler
77
78 testPreCompiler_SOURCES= \
79 testPreCompiler.h \
80 testPreCompiler.cc \
81 $(top_srcdir)/src/tests/testMain.cc
82 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
83 testPreCompiler_LDFLAGS=
84
85 # os/ subdir prevents us using src/TestHeaders.am
86 #
87 TESTS += testHeaders
88
89 ## Special Universal .h dependency test script
90 ## aborts if error encountered
91 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
92 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
93
94 CLEANFILES += testHeaders
95
96 .PHONY: testHeaders