]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/Makefile.am
Merge from trunk
[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_LTLIBRARIES = libcompat.la
13 libcompat_la_SOURCES = \
14 assert.h \
15 compat.h \
16 compat_shared.h \
17 debug.h \
18 drand48.h \
19 eui64_aton.h \
20 fdsetsize.h \
21 getaddrinfo.h \
22 getnameinfo.h \
23 inet_ntop.h \
24 inet_pton.h \
25 initgroups.h \
26 osdetect.h \
27 stdvarargs.h \
28 strsep.h \
29 strtoll.h \
30 tempnam.h \
31 types.h \
32 unsafe.h \
33 valgrind.h \
34 \
35 os/aix.h \
36 os/dragonfly.h \
37 os/freebsd.h \
38 os/hpux.h \
39 os/linux.h \
40 os/mswin.h \
41 os/netbsd.h \
42 os/next.h \
43 os/openbsd.h \
44 os/os2.h \
45 os/qnx.h \
46 os/sgi.h \
47 os/solaris.h \
48 os/sunos.h \
49 os/windows.h \
50 \
51 assert.cc \
52 compat.cc \
53 debug.cc \
54 GnuRegex.h \
55 GnuRegex.c
56
57 check_PROGRAMS += testPreCompiler
58 TESTS += testPreCompiler
59
60 testPreCompiler_SOURCES= \
61 testPreCompiler.h \
62 testPreCompiler.cc \
63 $(top_srcdir)/src/tests/testMain.cc
64 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
65 testPreCompiler_LDFLAGS=
66
67 # os/ subdir prevents us using src/TestHeaders.am
68 #
69 TESTS += testHeaders
70
71 ## Special Universal .h dependency test script
72 ## aborts if error encountered
73 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
74 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)" || exit 1
75 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/os" || exit 1
76
77 CLEANFILES += testHeaders
78
79 .PHONY: testHeaders