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