]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/Makefile.am
Merged from trunk rev.14084
[thirdparty/squid.git] / compat / Makefile.am
1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6
7 #
8 # Makefile for the Squid Portability Library
9 #
10
11 include $(top_srcdir)/src/Common.am
12
13 AUTOMAKE_OPTIONS = subdir-objects
14
15 # Ideally this would be 100% inline functions and macro wrappers.
16
17 # Port Specific Configurations
18
19 noinst_LTLIBRARIES = libcompat-squid.la
20 libcompat_squid_la_SOURCES = \
21 assert.cc \
22 assert.h \
23 cmsg.h \
24 compat.cc \
25 compat.h \
26 compat_shared.h \
27 cpu.h \
28 cppunit.h \
29 debug.cc \
30 debug.h \
31 eui64_aton.h \
32 eui64_aton.c \
33 fdsetsize.h \
34 getaddrinfo.cc \
35 getaddrinfo.h \
36 getnameinfo.cc \
37 getnameinfo.h \
38 GnuRegex.c \
39 GnuRegex.h \
40 inet_ntop.cc \
41 inet_ntop.h \
42 inet_pton.cc \
43 inet_pton.h \
44 initgroups.h \
45 memrchr.cc \
46 memrchr.h \
47 osdetect.h \
48 psignal.h \
49 shm.cc \
50 shm.h \
51 statvfs.h \
52 statvfs.cc \
53 stdio.h \
54 stdvarargs.h \
55 strnstr.cc \
56 strtoll.h \
57 strnrchr.h \
58 strnrchr.c \
59 tempnam.h \
60 types.h \
61 valgrind.h \
62 xalloc.cc \
63 xalloc.h \
64 xis.h \
65 xstrerror.cc \
66 xstrerror.h \
67 xstring.cc \
68 xstring.h \
69 xstrto.cc \
70 xstrto.h \
71 \
72 os/aix.h \
73 os/android.h \
74 os/dragonfly.h \
75 os/freebsd.h \
76 os/hpux.h \
77 os/linux.h \
78 os/macosx.h \
79 os/mswindows.h \
80 mswindows.cc \
81 os/netbsd.h \
82 os/next.h \
83 os/openbsd.h \
84 os/opensolaris_10_netdb.h \
85 os/os2.h \
86 os/qnx.h \
87 os/sgi.h \
88 os/solaris.h \
89 os/sunos.h
90
91 libcompat_squid_la_LIBADD= $(LTLIBOBJS)
92
93 check_PROGRAMS += testPreCompiler
94 TESTS += testPreCompiler
95
96 testPreCompiler_SOURCES= \
97 testPreCompiler.h \
98 testPreCompiler.cc
99 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
100 testPreCompiler_LDFLAGS=
101
102 # os/ subdir prevents us using src/TestHeaders.am
103 #
104 TESTS += testHeaders
105
106 ## Special Universal .h dependency test script
107 ## aborts if error encountered
108 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
109 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
110
111 CLEANFILES += testHeaders
112
113 .PHONY: testHeaders