]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/Makefile.am
SourceFormat Enforcement
[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 drand48.h \
32 eui64_aton.h \
33 eui64_aton.c \
34 fdsetsize.h \
35 getaddrinfo.cc \
36 getaddrinfo.h \
37 getnameinfo.cc \
38 getnameinfo.h \
39 GnuRegex.c \
40 GnuRegex.h \
41 inet_ntop.cc \
42 inet_ntop.h \
43 inet_pton.cc \
44 inet_pton.h \
45 initgroups.h \
46 memrchr.cc \
47 memrchr.h \
48 osdetect.h \
49 psignal.h \
50 shm.cc \
51 shm.h \
52 statvfs.h \
53 statvfs.cc \
54 stdio.h \
55 stdvarargs.h \
56 strnstr.cc \
57 strtoll.h \
58 strnrchr.h \
59 strnrchr.c \
60 tempnam.h \
61 types.h \
62 valgrind.h \
63 xalloc.cc \
64 xalloc.h \
65 xis.h \
66 xstrerror.cc \
67 xstrerror.h \
68 xstring.cc \
69 xstring.h \
70 xstrto.cc \
71 xstrto.h \
72 \
73 os/aix.h \
74 os/android.h \
75 os/dragonfly.h \
76 os/freebsd.h \
77 os/hpux.h \
78 os/linux.h \
79 os/macosx.h \
80 os/mswindows.h \
81 mswindows.cc \
82 os/netbsd.h \
83 os/next.h \
84 os/openbsd.h \
85 os/opensolaris_10_netdb.h \
86 os/os2.h \
87 os/qnx.h \
88 os/sgi.h \
89 os/solaris.h \
90 os/sunos.h
91
92 libcompat_squid_la_LIBADD= $(LTLIBOBJS)
93
94 check_PROGRAMS += testPreCompiler
95 TESTS += testPreCompiler
96
97 testPreCompiler_SOURCES= \
98 testPreCompiler.h \
99 testPreCompiler.cc
100 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
101 testPreCompiler_LDFLAGS=
102
103 # os/ subdir prevents us using src/TestHeaders.am
104 #
105 TESTS += testHeaders
106
107 ## Special Universal .h dependency test script
108 ## aborts if error encountered
109 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
110 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
111
112 CLEANFILES += testHeaders
113
114 .PHONY: testHeaders