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