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