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