fix tls_cipher memory lifetime.
[exim.git] / src / scripts / MakeLinks
CommitLineData
61ec970d 1#!/bin/sh
61ec970d
PH
2
3# Script to build links for all the exim source files from the system-
4# specific build directory. It should be run from within that directory.
5
6test ! -d ../src && \
7 echo "*** $0 should be run in a system-specific subdirectory." && \
8 exit 1
9test -r version.c && \
10 echo "*** It appears that $0 has already been run." && \
11 exit 1
12if [ -r pcre/Makefile ] ; then
13 echo "*** It appears that $0 was previously interrupted."
14 echo "*** You need to remove the build directory, and then run 'make' again."
15 exit 1
16fi
17
18
61ec970d
PH
19echo ""
20echo ">>> Creating links to source files..."
21
22
74fc64f2
TF
23# The sources for modular parts of Exim have to be linked independently
24# in their own sub-directories, since their .o files are built using
25# their own Makefile in their sub-directory.
61ec970d 26
74fc64f2 27# Firstly the lookups
61ec970d
PH
28mkdir lookups
29cd lookups
30ln -s ../../src/lookups/README README
0a349494 31# Makefile is generated
61ec970d 32ln -s ../../src/lookups/cdb.c cdb.c
61ec970d 33ln -s ../../src/lookups/dbmdb.c dbmdb.c
61ec970d 34ln -s ../../src/lookups/dnsdb.c dnsdb.c
61ec970d 35ln -s ../../src/lookups/dsearch.c dsearch.c
61ec970d
PH
36ln -s ../../src/lookups/ibase.c ibase.c
37ln -s ../../src/lookups/ldap.h ldap.h
38ln -s ../../src/lookups/ldap.c ldap.c
61ec970d 39ln -s ../../src/lookups/lsearch.c lsearch.c
61ec970d 40ln -s ../../src/lookups/mysql.c mysql.c
61ec970d 41ln -s ../../src/lookups/nis.c nis.c
61ec970d 42ln -s ../../src/lookups/nisplus.c nisplus.c
61ec970d 43ln -s ../../src/lookups/oracle.c oracle.c
61ec970d 44ln -s ../../src/lookups/passwd.c passwd.c
61ec970d 45ln -s ../../src/lookups/pgsql.c pgsql.c
92f1b170 46ln -s ../../src/lookups/spf.c spf.c
13b685f9 47ln -s ../../src/lookups/sqlite.c sqlite.c
61ec970d 48ln -s ../../src/lookups/testdb.c testdb.c
61ec970d
PH
49ln -s ../../src/lookups/whoson.c whoson.c
50
51ln -s ../../src/lookups/lf_functions.h lf_functions.h
52ln -s ../../src/lookups/lf_check_file.c lf_check_file.c
53ln -s ../../src/lookups/lf_quote.c lf_quote.c
b7670459 54ln -s ../../src/lookups/lf_sqlperform.c lf_sqlperform.c
61ec970d
PH
55
56cd ..
57
58# Likewise for the code for the routers
59mkdir routers
60cd routers
61ln -s ../../src/routers/README README
62ln -s ../../src/routers/Makefile Makefile
63ln -s ../../src/routers/accept.h accept.h
64ln -s ../../src/routers/accept.c accept.c
65ln -s ../../src/routers/dnslookup.h dnslookup.h
66ln -s ../../src/routers/dnslookup.c dnslookup.c
67ln -s ../../src/routers/ipliteral.h ipliteral.h
68ln -s ../../src/routers/ipliteral.c ipliteral.c
69ln -s ../../src/routers/iplookup.h iplookup.h
70ln -s ../../src/routers/iplookup.c iplookup.c
71ln -s ../../src/routers/manualroute.h manualroute.h
72ln -s ../../src/routers/manualroute.c manualroute.c
73ln -s ../../src/routers/queryprogram.h queryprogram.h
74ln -s ../../src/routers/queryprogram.c queryprogram.c
75ln -s ../../src/routers/redirect.h redirect.h
76ln -s ../../src/routers/redirect.c redirect.c
77
78ln -s ../../src/routers/rf_functions.h rf_functions.h
79ln -s ../../src/routers/rf_change_domain.c rf_change_domain.c
80ln -s ../../src/routers/rf_expand_data.c rf_expand_data.c
81ln -s ../../src/routers/rf_get_errors_address.c rf_get_errors_address.c
82ln -s ../../src/routers/rf_get_munge_headers.c rf_get_munge_headers.c
83ln -s ../../src/routers/rf_get_transport.c rf_get_transport.c
84ln -s ../../src/routers/rf_get_ugid.c rf_get_ugid.c
85ln -s ../../src/routers/rf_queue_add.c rf_queue_add.c
86ln -s ../../src/routers/rf_lookup_hostlist.c rf_lookup_hostlist.c
87ln -s ../../src/routers/rf_self_action.c rf_self_action.c
88ln -s ../../src/routers/rf_set_ugid.c rf_set_ugid.c
89
90cd ..
91
92# Likewise for the code for the transports
93mkdir transports
94cd transports
95ln -s ../../src/transports/README README
96ln -s ../../src/transports/Makefile Makefile
97ln -s ../../src/transports/appendfile.h appendfile.h
98ln -s ../../src/transports/appendfile.c appendfile.c
99ln -s ../../src/transports/autoreply.h autoreply.h
100ln -s ../../src/transports/autoreply.c autoreply.c
101ln -s ../../src/transports/lmtp.h lmtp.h
102ln -s ../../src/transports/lmtp.c lmtp.c
103ln -s ../../src/transports/pipe.h pipe.h
104ln -s ../../src/transports/pipe.c pipe.c
105ln -s ../../src/transports/smtp.h smtp.h
106ln -s ../../src/transports/smtp.c smtp.c
107
108ln -s ../../src/transports/tf_maildir.c tf_maildir.c
109ln -s ../../src/transports/tf_maildir.h tf_maildir.h
110
111cd ..
112
113# Likewise for the code for the authorization functions
114mkdir auths
115cd auths
116ln -s ../../src/auths/README README
117ln -s ../../src/auths/Makefile Makefile
118ln -s ../../src/auths/b64encode.c b64encode.c
119ln -s ../../src/auths/b64decode.c b64decode.c
120ln -s ../../src/auths/call_pam.c call_pam.c
121ln -s ../../src/auths/call_pwcheck.c call_pwcheck.c
122ln -s ../../src/auths/call_radius.c call_radius.c
16ff981e 123ln -s ../../src/auths/check_serv_cond.c check_serv_cond.c
61ec970d
PH
124ln -s ../../src/auths/cyrus_sasl.c cyrus_sasl.c
125ln -s ../../src/auths/cyrus_sasl.h cyrus_sasl.h
44bbabb5
PP
126ln -s ../../src/auths/gsasl_exim.c gsasl_exim.c
127ln -s ../../src/auths/gsasl_exim.h gsasl_exim.h
61ec970d
PH
128ln -s ../../src/auths/get_data.c get_data.c
129ln -s ../../src/auths/get_no64_data.c get_no64_data.c
dde3daac
PP
130ln -s ../../src/auths/heimdal_gssapi.c heimdal_gssapi.c
131ln -s ../../src/auths/heimdal_gssapi.h heimdal_gssapi.h
61ec970d
PH
132ln -s ../../src/auths/md5.c md5.c
133ln -s ../../src/auths/xtextencode.c xtextencode.c
134ln -s ../../src/auths/xtextdecode.c xtextdecode.c
135ln -s ../../src/auths/cram_md5.c cram_md5.c
136ln -s ../../src/auths/cram_md5.h cram_md5.h
137ln -s ../../src/auths/plaintext.c plaintext.c
138ln -s ../../src/auths/plaintext.h plaintext.h
139ln -s ../../src/auths/pwcheck.c pwcheck.c
140ln -s ../../src/auths/pwcheck.h pwcheck.h
141ln -s ../../src/auths/auth-spa.c auth-spa.c
142ln -s ../../src/auths/auth-spa.h auth-spa.h
14aa5a05
PH
143ln -s ../../src/auths/dovecot.c dovecot.c
144ln -s ../../src/auths/dovecot.h dovecot.h
61ec970d
PH
145ln -s ../../src/auths/sha1.c sha1.c
146ln -s ../../src/auths/spa.c spa.c
147ln -s ../../src/auths/spa.h spa.h
148cd ..
149
80a47a2c
TK
150# Likewise for the code for the PDKIM library
151mkdir pdkim
152cd pdkim
153ln -s ../../src/pdkim/README README
154ln -s ../../src/pdkim/Makefile Makefile
155ln -s ../../src/pdkim/base64.c base64.c
156ln -s ../../src/pdkim/base64.h base64.h
157ln -s ../../src/pdkim/bignum.c bignum.c
158ln -s ../../src/pdkim/bignum.h bignum.h
159ln -s ../../src/pdkim/bn_mul.h bn_mul.h
160ln -s ../../src/pdkim/pdkim.c pdkim.c
161ln -s ../../src/pdkim/pdkim.h pdkim.h
80a47a2c
TK
162ln -s ../../src/pdkim/rsa.c rsa.c
163ln -s ../../src/pdkim/rsa.h rsa.h
164ln -s ../../src/pdkim/sha1.c sha1.c
165ln -s ../../src/pdkim/sha1.h sha1.h
166ln -s ../../src/pdkim/sha2.c sha2.c
167ln -s ../../src/pdkim/sha2.h sha2.h
168cd ..
169
61ec970d
PH
170# The basic source files for Exim and utilities. NB local_scan.h gets linked,
171# but local_scan.c does not, because its location is taken from the build-time
172# configuration. Likewise for the os.c file, which gets build dynamically.
173
174ln -s ../src/dbfunctions.h dbfunctions.h
175ln -s ../src/dbstuff.h dbstuff.h
176ln -s ../src/exim.h exim.h
177ln -s ../src/functions.h functions.h
178ln -s ../src/globals.h globals.h
179ln -s ../src/local_scan.h local_scan.h
180ln -s ../src/macros.h macros.h
181ln -s ../src/mytypes.h mytypes.h
182ln -s ../src/osfunctions.h osfunctions.h
183ln -s ../src/store.h store.h
184ln -s ../src/structs.h structs.h
e6d225ae 185ln -s ../src/lookupapi.h lookupapi.h
61ec970d
PH
186
187ln -s ../src/acl.c acl.c
188ln -s ../src/buildconfig.c buildconfig.c
189ln -s ../src/child.c child.c
190ln -s ../src/crypt16.c crypt16.c
191ln -s ../src/daemon.c daemon.c
192ln -s ../src/dbfn.c dbfn.c
193ln -s ../src/debug.c debug.c
194ln -s ../src/deliver.c deliver.c
195ln -s ../src/directory.c directory.c
196ln -s ../src/dns.c dns.c
197ln -s ../src/drtables.c drtables.c
198ln -s ../src/dummies.c dummies.c
199ln -s ../src/enq.c enq.c
200ln -s ../src/exim.c exim.c
201ln -s ../src/exim_dbmbuild.c exim_dbmbuild.c
202ln -s ../src/exim_dbutil.c exim_dbutil.c
203ln -s ../src/exim_lock.c exim_lock.c
204ln -s ../src/expand.c expand.c
205ln -s ../src/filter.c filter.c
206ln -s ../src/filtertest.c filtertest.c
207ln -s ../src/globals.c globals.c
208ln -s ../src/header.c header.c
209ln -s ../src/host.c host.c
210ln -s ../src/ip.c ip.c
211ln -s ../src/log.c log.c
212ln -s ../src/lss.c lss.c
213ln -s ../src/match.c match.c
214ln -s ../src/moan.c moan.c
215ln -s ../src/parse.c parse.c
216ln -s ../src/perl.c perl.c
217ln -s ../src/queue.c queue.c
218ln -s ../src/rda.c rda.c
219ln -s ../src/readconf.c readconf.c
220ln -s ../src/receive.c receive.c
221ln -s ../src/retry.c retry.c
222ln -s ../src/rewrite.c rewrite.c
223ln -s ../src/rfc2047.c rfc2047.c
224ln -s ../src/route.c route.c
225ln -s ../src/search.c search.c
226ln -s ../src/sieve.c sieve.c
227ln -s ../src/smtp_in.c smtp_in.c
228ln -s ../src/smtp_out.c smtp_out.c
229ln -s ../src/spool_in.c spool_in.c
230ln -s ../src/spool_out.c spool_out.c
231ln -s ../src/store.c store.c
232ln -s ../src/string.c string.c
233ln -s ../src/tls.c tls.c
234ln -s ../src/tls-gnu.c tls-gnu.c
235ln -s ../src/tls-openssl.c tls-openssl.c
236ln -s ../src/tod.c tod.c
237ln -s ../src/transport.c transport.c
238ln -s ../src/tree.c tree.c
239ln -s ../src/verify.c verify.c
240ln -s ../src/version.c version.c
80a47a2c
TK
241ln -s ../src/dkim.c dkim.c
242ln -s ../src/dkim.h dkim.h
7f36d675
DW
243ln -s ../src/valgrind.h valgrind.h
244ln -s ../src/memcheck.h memcheck.h
61ec970d 245
8523533c
TK
246# WITH_CONTENT_SCAN
247ln -s ../src/spam.c spam.c
248ln -s ../src/spam.h spam.h
249ln -s ../src/spool_mbox.c spool_mbox.c
250ln -s ../src/regex.c regex.c
251ln -s ../src/mime.c mime.c
252ln -s ../src/mime.h mime.h
253ln -s ../src/malware.c malware.c
254
255# WITH_OLD_DEMIME
256ln -s ../src/demime.c demime.c
257ln -s ../src/demime.h demime.h
258
259# EXPERIMENTAL_*
260ln -s ../src/bmi_spam.c bmi_spam.c
261ln -s ../src/bmi_spam.h bmi_spam.h
262ln -s ../src/spf.c spf.c
263ln -s ../src/spf.h spf.h
264ln -s ../src/srs.c srs.c
265ln -s ../src/srs.h srs.h
6a8f9482
TK
266ln -s ../src/dcc.c dcc.c
267ln -s ../src/dcc.h dcc.h
268
8523533c 269
61ec970d 270# End of MakeLinks