]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Correct execute and write permissions from some files.
[thirdparty/squid.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id: Makefile.am,v 1.33 2007/12/14 23:11:44 amosjeffries Exp $
4 #
5
6 if USE_LOADABLE_MODULES
7 DIST_SUBDIRS = libLtdl
8 SUBDIRS = libLtdl
9 else
10 DIST_SUBDIRS =
11 SUBDIRS =
12 endif
13
14 DIST_SUBDIRS += libTrie
15 SUBDIRS += libTrie
16
17 install: all
18 install-strip: all
19
20 AM_CFLAGS = @SQUID_CFLAGS@
21 AM_CXXFLAGS = @SQUID_CXXFLAGS@
22
23 if ENABLE_XPROF_STATS
24 XPROF_STATS_SOURCE = Profiler.c
25 else
26 XPROF_STATS_SOURCE =
27 endif
28
29 if NEED_OWN_STRSEP
30 STRSEPSOURCE=strsep.c
31 else
32 STRSEPSOURCE=
33 endif
34 if NEED_OWN_STRTOLL
35 STRTOLLSOURCE=strtoll.c
36 else
37 STRTOLLSOURCE=
38 endif
39
40 if ENABLE_WIN32SPECIFIC
41 LIBSSPWIN32=libsspwin32.a
42 WIN32SRC = win32lib.c
43 else
44 LIBSSPWIN32=
45 WIN32SRC=
46 endif
47
48 EXTRA_LIBRARIES = \
49 libregex.a \
50 libsspwin32.a
51 noinst_LIBRARIES = \
52 libmiscutil.a \
53 libntlmauth.a \
54 $(LIBSSPWIN32) \
55 @LIBREGEX@
56 #
57 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
58 #
59 EXTRA_libmiscutil_a_SOURCES = \
60 dirent.c \
61 encrypt.c \
62 getopt.c \
63 md5.c \
64 Profiler.c \
65 strsep.c \
66 strtoll.c \
67 win32lib.c
68 libmiscutil_a_SOURCES = \
69 MemPool.cc \
70 base64.c \
71 charset.c \
72 getfullhostname.c \
73 hash.c \
74 heap.c \
75 html_quote.c \
76 IPAddress.cc \
77 iso3307.c \
78 md5.c \
79 radix.c \
80 rfc1035.c \
81 rfc1123.c \
82 rfc1738.c \
83 rfc2617.c \
84 rfc3596.c \
85 $(SNPRINTFSOURCE) \
86 Splay.cc \
87 strnstr.cc \
88 $(STRSEPSOURCE) \
89 $(STRTOLLSOURCE) \
90 stub_memaccount.c \
91 util.c \
92 uudecode.c \
93 assert.c \
94 xusleep.c \
95 $(XPROF_STATS_SOURCE) \
96 $(WIN32SRC)
97 libmiscutil_a_LIBADD = \
98 libTrie/src/Trie.o \
99 libTrie/src/TrieNode.o \
100 @LIBOBJS@
101 # $(top_srcdir)/include/version.h should be a dependency
102 libregex_a_SOURCES = \
103 GNUregex.c
104 libntlmauth_a_SOURCES = \
105 ntlmauth.c
106 libntlmauth_a_LIBADD = \
107 @LIBOBJS@
108 libsspwin32_a_SOURCES = \
109 sspwin32.c
110
111 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include @SQUID_CPPUNIT_INC@
112 ##FIXME - set these in configure.in and reuse
113
114 check_PROGRAMS= \
115 testHeaders \
116 tests/testAll
117 TESTS=$(check_PROGRAMS)
118
119 ## Special Universal .h dependency test script
120 ## aborts if error encountered
121 testHeaders: $(top_srcdir)/include/*.h
122 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
123
124 ## No such file...
125 testHeaders.c:
126 touch testHeaders.c
127
128 tests_testAll_SOURCES= \
129 tests/testArray.h \
130 tests/testArray.cc \
131 tests/testIPAddress.h \
132 tests/testIPAddress.cc \
133 IPAddress.cc \
134 tests/testRFC1035.h \
135 tests/testRFC1035.cc \
136 tests/testMain.cc \
137 $(XPROF_STATS_SOURCE) \
138 $(WIN32SRC) \
139 util.c assert.c
140
141 tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@
142
143 tests_testAll_LDFLAGS = $(LIBADD_DL)
144