]>
Commit | Line | Data |
---|---|---|
f70aedc4 | 1 | ## Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
37be9888 AJ |
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 | ||
f04e1182 AJ |
7 | # |
8 | # Makefile for the Squid Portability Library | |
9 | # | |
10 | ||
ee342e0b | 11 | include $(top_srcdir)/src/Common.am |
f04e1182 | 12 | |
f04e1182 AJ |
13 | # Ideally this would be 100% inline functions and macro wrappers. |
14 | ||
15 | # Port Specific Configurations | |
16 | ||
ca3a08e2 AJ |
17 | noinst_LTLIBRARIES = libcompatsquid.la |
18 | libcompatsquid_la_SOURCES = \ | |
aa5639dc | 19 | GnuRegex.c \ |
20 | GnuRegex.h \ | |
25f98340 | 21 | assert.cc \ |
ea9d149b | 22 | assert.h \ |
14c0d3ab | 23 | cmsg.h \ |
25f98340 | 24 | compat.cc \ |
f04e1182 | 25 | compat.h \ |
f04e1182 | 26 | compat_shared.h \ |
a203dec7 | 27 | cppunit.h \ |
aa5639dc | 28 | cpu.h \ |
25f98340 | 29 | debug.cc \ |
c19c2c0b | 30 | debug.h \ |
4de1e2da | 31 | eui64_aton.c \ |
aa5639dc | 32 | eui64_aton.h \ |
09564478 | 33 | fdsetsize.h \ |
55d7d5e9 | 34 | getaddrinfo.cc \ |
27bc2077 | 35 | getaddrinfo.h \ |
55d7d5e9 | 36 | getnameinfo.cc \ |
27bc2077 | 37 | getnameinfo.h \ |
55d7d5e9 | 38 | inet_ntop.cc \ |
27bc2077 | 39 | inet_ntop.h \ |
55d7d5e9 | 40 | inet_pton.cc \ |
27bc2077 AJ |
41 | inet_pton.h \ |
42 | initgroups.h \ | |
ee4d4e85 AJ |
43 | memrchr.cc \ |
44 | memrchr.h \ | |
aa5639dc | 45 | mswindows.cc \ |
24b30fdc | 46 | openssl.h \ |
aa5639dc | 47 | os/aix.h \ |
48 | os/android.h \ | |
49 | os/dragonfly.h \ | |
50 | os/freebsd.h \ | |
51 | os/hpux.h \ | |
52 | os/linux.h \ | |
53 | os/macosx.h \ | |
54 | os/mswindows.h \ | |
55 | os/netbsd.h \ | |
56 | os/next.h \ | |
57 | os/openbsd.h \ | |
58 | os/opensolaris_10_netdb.h \ | |
59 | os/os2.h \ | |
60 | os/qnx.h \ | |
61 | os/sgi.h \ | |
62 | os/solaris.h \ | |
63 | os/sunos.h \ | |
ea9d149b | 64 | osdetect.h \ |
a098f956 | 65 | psignal.h \ |
ef8de464 | 66 | shm.cc \ |
c975f532 | 67 | shm.h \ |
615540cd | 68 | statvfs.cc \ |
aa5639dc | 69 | statvfs.h \ |
5b44c55d | 70 | stdio.h \ |
09564478 | 71 | stdvarargs.h \ |
aa5639dc | 72 | strnrchr.c \ |
73 | strnrchr.h \ | |
41d00cd3 | 74 | strnstr.cc \ |
27bc2077 AJ |
75 | strtoll.h \ |
76 | tempnam.h \ | |
489520a9 | 77 | types.h \ |
09564478 | 78 | valgrind.h \ |
25f98340 AJ |
79 | xalloc.cc \ |
80 | xalloc.h \ | |
41d00cd3 | 81 | xis.h \ |
25f98340 AJ |
82 | xstrerror.cc \ |
83 | xstrerror.h \ | |
84 | xstring.cc \ | |
85 | xstring.h \ | |
86 | xstrto.cc \ | |
aa5639dc | 87 | xstrto.h |
f04e1182 | 88 | |
ca3a08e2 | 89 | libcompatsquid_la_LIBADD= $(LTLIBOBJS) |
a098f956 | 90 | |
19ce1bfe AJ |
91 | check_PROGRAMS += testPreCompiler |
92 | TESTS += testPreCompiler | |
93 | ||
aa5639dc | 94 | testPreCompiler_SOURCES = \ |
95 | testPreCompiler.cc \ | |
96 | testPreCompiler.h | |
d93bf055 | 97 | testPreCompiler_LDADD= $(LIBCPPUNIT_LIBS) |
19ce1bfe | 98 | testPreCompiler_LDFLAGS= |
f04e1182 | 99 | |
ee342e0b AJ |
100 | # os/ subdir prevents us using src/TestHeaders.am |
101 | # | |
102 | TESTS += testHeaders | |
f04e1182 AJ |
103 | |
104 | ## Special Universal .h dependency test script | |
105 | ## aborts if error encountered | |
508e9b20 | 106 | testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h |
a0fdc9bf | 107 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1 |
ee342e0b AJ |
108 | |
109 | CLEANFILES += testHeaders | |
f04e1182 | 110 | |
ee342e0b | 111 | .PHONY: testHeaders |