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