tidying
[exim.git] / src / OS / Makefile-Base
CommitLineData
61ec970d
PH
1# This file is the basis of the main makefile for Exim and friends. The
2# makefile at the top level arranges to build the main makefile by calling
3# scripts/Configure-Makefile from within the build directory. This
4c04137d 4# concatenates the configuration settings from Local/Makefile and other,
61ec970d
PH
5# optional, Local/* files at the front of this file, to create Makefile in the
6# build directory.
80fea873
JH
7#
8# Copyright (c) The Exim Maintainers 2016
61ec970d
PH
9
10SHELL = $(MAKE_SHELL)
11SCRIPTS = ../scripts
dfc7c07a 12O = ../OS
61ec970d
PH
13EDITME = ../Local/Makefile
14EXIMON_EDITME = ../Local/eximon.conf
15
16# The compiler used for linking is normally the same as the compiler used for
17# compiling. However, by giving it a different name, we can override it from
18# the command line, and this is helpful for certain types of testing.
19
20LNCC = $(CC)
21
c1ac6996
PH
22# The compile commands can be very long. To make the output look better,
23# they are not normally echoed in full. To get full echoing, the caller
24# must set FULLECHO='' on the command line and call make with -e. We default
25# FULLECHO to '@' to suppress the full echo. Then define an abbreviation.
26
27FULLECHO = @
28FE = $(FULLECHO)
61ec970d
PH
29
30# The default target double-checks the existence of $(EDITME) and then arranges
31# to touch it if it exists and any of the optional configuration files, which
32# depend on the os or the architecture, have been altered. The same sub-target
33# does the same thing for the eximon configuration file if it exists. Then
34# there is a check that the Makefile (the one built from this file) is
35# up-to-date. Then the os-specific source files and the C configuration file
36# are set up, and finally it goes to the main Exim target.
37
8497e842 38all: utils exim
d185889f 39config: $(EDITME) checklocalmake Makefile os.c config.h version.h macro.c
61ec970d 40
3ae1aa79 41checklocalmake:
61ec970d
PH
42 @if $(SHELL) $(SCRIPTS)/newer $(EDITME)-$(OSTYPE) $(EDITME) || \
43 $(SHELL) $(SCRIPTS)/newer $(EDITME)-$(ARCHTYPE) $(EDITME) || \
44 $(SHELL) $(SCRIPTS)/newer $(EDITME)-$(OSTYPE)-$(ARCHTYPE) $(EDITME); \
45 then \
46 touch $(EDITME); \
47 fi
48 @if $(SHELL) $(SCRIPTS)/newer $(EXIMON_EDITME)-$(OSTYPE) $(EXIMON_EDITME) || \
49 $(SHELL) $(SCRIPTS)/newer $(EXIMON_EDITME)-$(ARCHTYPE) $(EXIMON_EDITME) || \
50 $(SHELL) $(SCRIPTS)/newer $(EXIMON_EDITME)-$(OSTYPE)-$(ARCHTYPE) $(EXIMON_EDITME); \
51 then \
52 if [ -f $(EXIMON_EDITME) ]; then touch $(EXIMON_EDITME); fi \
53 fi
54
55$(EDITME):
56 @echo " "
57 @echo "*** Please create Local/Makefile by copying src/EDITME and making"
58 @echo "*** appropriate changes for your site."
59 @echo " "
60 @false
61
62$(EXIMON_EDITME):
63 @echo " "
64 @echo "*** Please create Local/eximon.conf by copying exim_monitor/EDITME and making"
65 @echo "*** appropriate changes for your site."
66 @echo " "
67 @test ! -d ../Local && mkdir ../Local
68 @false
69
70# Check that the local Makefile is up-to-date
71
72Makefile: ../OS/Makefile-Base ../OS/Makefile-Default \
73 $(SCRIPTS)/Configure $(SCRIPTS)/Configure-Makefile $(EDITME)
74 @echo " "
75 @echo "*** Makefile needs rebuilding"
76 @echo "*** Please run \"make makefile\" at top level"
77 @echo " "
78 @false
79
80# Build (link) the os.h file
81
0d7474f1
JH
82#os.h: $(SCRIPTS)/Configure-os.h \
83# $(O)/os.h-AIX $(O)/os.h-BSDI $(O)/os.h-cygwin \
84# $(O)/os.h-Darwin $(O)/os.h-DGUX $(O)/os.h-DragonFly \
85# $(O)/os.h-FreeBSD $(O)/os.h-GNU $(O)/os.h-GNUkFreeBSD \
86# $(O)/os.h-GNUkNetBSD $(O)/os.h-HI-OSF \
87# $(O)/os.h-HI-UX $(O)/os.h-HP-UX $(O)/os.h-HP-UX-9 \
88# $(O)/os.h-IRIX $(O)/os.h-IRIX6 $(O)/os.h-IRIX632 \
89# $(O)/os.h-IRIX65 $(O)/os.h-Linux $(O)/os.h-mips \
90# $(O)/os.h-NetBSD $(O)/os.h-NetBSD-a.out \
91# $(O)/os.h-OpenBSD $(O)/os.h-OpenUNIX $(O)/os.h-OSF1 \
92# $(O)/os.h-QNX $(O)/os.h-SCO $(O)/os.h-SCO_SV \
93# $(O)/os.h-SunOS4 $(O)/os.h-SunOS5 $(O)/os.h-SunOS5-hal \
94# $(O)/os.h-ULTRIX $(O)/os.h-UNIX_SV \
95# $(O)/os.h-Unixware7 $(O)/os.h-USG
96# $(SHELL) $(SCRIPTS)/Configure-os.h
97
dfc7c07a 98os.h: $(SCRIPTS)/Configure-os.h \
0d7474f1
JH
99 $(O)/os.h-FreeBSD \
100 $(O)/os.h-Linux \
101 $(O)/os.h-OpenBSD \
102 $(O)/os.h-SunOS5
61ec970d
PH
103 $(SHELL) $(SCRIPTS)/Configure-os.h
104
105# Build the os.c file
106
0d7474f1
JH
107#os.c: ../src/os.c \
108# $(SCRIPTS)/Configure-os.c \
109# $(O)/os.c-cygwin $(O)/os.c-GNU $(O)/os.c-HI-OSF \
110# $(O)/os.c-IRIX $(O)/os.c-IRIX6 $(O)/os.c-IRIX632 \
111# $(O)/os.c-IRIX65 $(O)/os.c-Linux $(O)/os.c-OSF1
112# $(SHELL) $(SCRIPTS)/Configure-os.c
113
dfc7c07a
JH
114os.c: ../src/os.c \
115 $(SCRIPTS)/Configure-os.c \
0d7474f1 116 $(O)/os.c-Linux
61ec970d
PH
117 $(SHELL) $(SCRIPTS)/Configure-os.c
118
119# Build the config.h file.
120
121config.h: Makefile buildconfig ../src/config.h.defaults $(EDITME)
9176e9f0 122 $(SHELL) $(SCRIPTS)/Configure-config.h "$(MAKE)"
61ec970d 123
d185889f
JH
124# Build the builtin-macros data struct
125
126MACRO_CSRC = macro_predef.c globals.c readconf.c route.c transport.c \
127 drtables.c \
128 transports/appendfile.c transports/autoreply.c transports/lmtp.c \
129 transports/pipe.c transports/queuefile.c transports/smtp.c \
130 routers/accept.c routers/dnslookup.c routers/ipliteral.c \
131 routers/iplookup.c routers/manualroute.c routers/queryprogram.c \
132 routers/redirect.c \
133 auths/auth-spa.c auths/cram_md5.c auths/cyrus_sasl.c auths/dovecot.c \
134 auths/gsasl_exim.c auths/heimdal_gssapi.c auths/plaintext.c auths/spa.c \
135 auths/tls.c
136MACRO_HSRC = macro_predef.h os.h globals.h config.h \
137 routers/accept.h routers/dnslookup.h routers/ipliteral.h \
138 routers/iplookup.h routers/manualroute.h routers/queryprogram.h \
139 routers/redirect.h
140
141macro_predef: $(MACRO_CSRC) $(MACRO_HSRC)
142 @echo "$(CC) -DMACRO_PREDEF macro_predef.c"
b93be52e 143 $(FE)$(CC) $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o macro_predef $(MACRO_CSRC)
d185889f
JH
144
145macro.c: macro_predef
146 ./macro_predef > macro.c
61ec970d
PH
147
148# This target is recognized specially by GNU make. It records those targets
149# that do not correspond to files that are being built and which should
150# therefore always be run, even if the files exist. This shouldn't in fact be a
151# problem, but it does no harm. Other make programs will just ignore this.
152
8497e842
JH
153.PHONY: all config utils \
154 buildauths buildlookups buildpdkim buildrouters \
61ec970d
PH
155 buildtransports checklocalmake clean
156
157
8497e842 158utils: $(EXIM_MONITOR) exicyclog exinext exiwhat \
61ec970d
PH
159 exigrep eximstats exipick exiqgrep exiqsumm \
160 transport-filter.pl convert4r3 convert4r4 \
161 exim_checkaccess \
8497e842 162 exim_dbmbuild exim_dumpdb exim_fixdb exim_tidydb exim_lock
61ec970d
PH
163
164
165# Targets for special-purpose configuration header builders
166buildconfig: buildconfig.c
c1ac6996
PH
167 @echo "$(CC) buildconfig.c"
168 $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
61ec970d
PH
169
170
171# Target for the exicyclog utility script
7864a644 172exicyclog: config ../src/exicyclog.src
61ec970d 173 @rm -f exicyclog
c1ac6996 174 @sed \
61ec970d
PH
175 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
176 -e "/^# /p" \
177 -e "/^# /d" \
178 -e "s?CONFIGURE_FILE_USE_NODE?$(CONFIGURE_FILE_USE_NODE)?" \
179 -e "s?CONFIGURE_FILE_USE_EUID?$(CONFIGURE_FILE_USE_EUID)?" \
180 -e "s?CONFIGURE_FILE?$(CONFIGURE_FILE)?" \
181 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
182 -e "s?EXICYCLOG_MAX?$(EXICYCLOG_MAX)?" \
183 -e "s?COMPRESS_COMMAND?$(COMPRESS_COMMAND)?" \
184 -e "s?COMPRESS_SUFFIX?$(COMPRESS_SUFFIX)?" \
61ec970d 185 -e "s?CHGRP_COMMAND?$(CHGRP_COMMAND)?" \
5c3a378f
TF
186 -e "s?CHMOD_COMMAND?$(CHMOD_COMMAND)?" \
187 -e "s?CHOWN_COMMAND?$(CHOWN_COMMAND)?" \
61ec970d
PH
188 -e "s?MV_COMMAND?$(MV_COMMAND)?" \
189 -e "s?RM_COMMAND?$(RM_COMMAND)?" \
5c3a378f 190 -e "s?TOUCH_COMMAND?$(TOUCH_COMMAND)?" \
61ec970d
PH
191 ../src/exicyclog.src > exicyclog-t
192 @mv exicyclog-t exicyclog
193 @chmod a+x exicyclog
c1ac6996 194 @echo ">>> exicyclog script built"
61ec970d
PH
195
196# Target for the exinext utility script
7864a644 197exinext: config ../src/exinext.src
61ec970d 198 @rm -f exinext
c1ac6996 199 @sed \
61ec970d
PH
200 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
201 -e "/^# /p" \
202 -e "/^# /d" \
203 -e "s?CONFIGURE_FILE_USE_NODE?$(CONFIGURE_FILE_USE_NODE)?" \
204 -e "s?CONFIGURE_FILE?$(CONFIGURE_FILE)?" \
205 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
206 ../src/exinext.src > exinext-t
207 @mv exinext-t exinext
208 @chmod a+x exinext
c1ac6996 209 @echo ">>> exinext script built"
61ec970d
PH
210
211# Target for the exiwhat utility script
7864a644 212exiwhat: config ../src/exiwhat.src
61ec970d 213 @rm -f exiwhat
c1ac6996 214 @sed \
61ec970d
PH
215 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
216 -e "/^# /p" \
217 -e "/^# /d" \
218 -e "s?CONFIGURE_FILE_USE_NODE?$(CONFIGURE_FILE_USE_NODE)?" \
219 -e "s?CONFIGURE_FILE?$(CONFIGURE_FILE)?" \
220 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
221 -e "s?EXIWHAT_PS_CMD?$(EXIWHAT_PS_CMD)?" \
222 -e "s?EXIWHAT_PS_ARG?$(EXIWHAT_PS_ARG)?" \
223 -e "s?EXIWHAT_KILL_SIGNAL?$(EXIWHAT_KILL_SIGNAL)?" \
224 -e "s?EXIWHAT_EGREP_ARG?$(EXIWHAT_EGREP_ARG)?" \
225 -e "s?EXIWHAT_MULTIKILL_CMD?$(EXIWHAT_MULTIKILL_CMD)?" \
226 -e "s?EXIWHAT_MULTIKILL_ARG?$(EXIWHAT_MULTIKILL_ARG)?" \
227 ../src/exiwhat.src > exiwhat-t
228 @mv exiwhat-t exiwhat
229 @chmod a+x exiwhat
c1ac6996 230 @echo ">>> exiwhat script built"
61ec970d
PH
231
232# Target for the exim_checkaccess utility script
7864a644 233exim_checkaccess: config ../src/exim_checkaccess.src
61ec970d 234 @rm -f exim_checkaccess
c1ac6996 235 @sed \
61ec970d
PH
236 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
237 -e "/^# /p" \
238 -e "/^# /d" \
239 -e "s?CONFIGURE_FILE_USE_NODE?$(CONFIGURE_FILE_USE_NODE)?" \
240 -e "s?CONFIGURE_FILE?$(CONFIGURE_FILE)?" \
241 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
242 -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
243 ../src/exim_checkaccess.src > exim_checkaccess-t
244 @mv exim_checkaccess-t exim_checkaccess
245 @chmod a+x exim_checkaccess
246 @echo ">>> exim_checkaccess script built"; echo ""
247
248# Target for the Exim monitor start-up script
7864a644 249eximon: config ../src/eximon.src ../OS/eximon.conf-Default \
61ec970d
PH
250 ../Local/eximon.conf
251 @rm -f eximon
252 $(SHELL) $(SCRIPTS)/Configure-eximon
c1ac6996 253 @sed \
61ec970d
PH
254 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
255 -e "/^# /p" \
256 -e "/^# /d" \
257 -e "s?CONFIGURE_FILE_USE_NODE?$(CONFIGURE_FILE_USE_NODE)?" \
258 -e "s?CONFIGURE_FILE?$(CONFIGURE_FILE)?" \
259 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
260 -e "s?BASENAME_COMMAND?$(BASENAME_COMMAND)?" \
261 -e "s?HOSTNAME_COMMAND?$(HOSTNAME_COMMAND)?" \
262 -e "s?X11_LD_LIBRARY?$(X11_LD_LIB)?" \
263 ../src/eximon.src >> eximon
264 @echo ">>> eximon script built"; echo ""
265
266# Targets for utilities; these are all Perl scripts that have to get the
267# location of Perl put in them. A few need other things as well.
268
269exigrep: Makefile ../src/exigrep.src
270 @rm -f exigrep
c1ac6996 271 @sed \
61ec970d
PH
272 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
273 -e "/^# /p" \
274 -e "/^# /d" \
275 -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
276 -e "s?ZCAT_COMMAND?$(ZCAT_COMMAND)?" \
277 -e "s?COMPRESS_SUFFIX?$(COMPRESS_SUFFIX)?" \
278 ../src/exigrep.src > exigrep-t
279 @mv exigrep-t exigrep
280 @chmod a+x exigrep
c1ac6996 281 @echo ">>> exigrep script built"
61ec970d
PH
282
283eximstats: Makefile ../src/eximstats.src
284 @rm -f eximstats
c1ac6996 285 @sed \
61ec970d
PH
286 -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
287 ../src/eximstats.src > eximstats-t
288 @mv eximstats-t eximstats
289 @chmod a+x eximstats
c1ac6996 290 @echo ">>> eximstats script built"
61ec970d
PH
291
292exiqgrep: Makefile ../src/exiqgrep.src
293 @rm -f exiqgrep
c1ac6996 294 @sed \
61ec970d
PH
295 -e "s?PROCESSED_FLAG?This file has been so processed.?"\
296 -e "/^# /p" \
297 -e "/^# /d" \
298 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
299 -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
300 ../src/exiqgrep.src > exiqgrep-t
301 @mv exiqgrep-t exiqgrep
302 @chmod a+x exiqgrep
c1ac6996 303 @echo ">>> exiqgrep script built"
61ec970d
PH
304
305exiqsumm: Makefile ../src/exiqsumm.src
306 @rm -f exiqsumm
c1ac6996 307 @sed -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
61ec970d
PH
308 ../src/exiqsumm.src > exiqsumm-t
309 @mv exiqsumm-t exiqsumm
310 @chmod a+x exiqsumm
c1ac6996 311 @echo ">>> exiqsumm script built"
61ec970d
PH
312
313exipick: Makefile ../src/exipick.src
314 @rm -f exipick
c1ac6996 315 @sed -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
61ec970d 316 -e "s?SPOOL_DIRECTORY?$(SPOOL_DIRECTORY)?" \
57397119 317 -e "s?BIN_DIRECTORY?$(BIN_DIRECTORY)?" \
61ec970d
PH
318 ../src/exipick.src > exipick-t
319 @mv exipick-t exipick
320 @chmod a+x exipick
c1ac6996 321 @echo ">>> exipick script built"
61ec970d
PH
322
323transport-filter.pl: Makefile ../src/transport-filter.src
324 @rm -f transport-filter.pl
c1ac6996 325 @sed -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
61ec970d
PH
326 ../src/transport-filter.src > transport-filter.pl-t
327 @mv transport-filter.pl-t transport-filter.pl
328 @chmod a+x transport-filter.pl
c1ac6996 329 @echo ">>> transport-filter.pl script built"
61ec970d
PH
330
331convert4r3: Makefile ../src/convert4r3.src
332 @rm -f convert4r3
c1ac6996 333 @sed -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
61ec970d
PH
334 ../src/convert4r3.src > convert4r3-t
335 @mv convert4r3-t convert4r3
336 @chmod a+x convert4r3
c1ac6996 337 @echo ">>> convert4r3 script built"
61ec970d
PH
338
339convert4r4: Makefile ../src/convert4r4.src
340 @rm -f convert4r4
c1ac6996 341 @sed -e "s?PERL_COMMAND?$(PERL_COMMAND)?" \
61ec970d
PH
342 ../src/convert4r4.src > convert4r4-t
343 @mv convert4r4-t convert4r4
344 @chmod a+x convert4r4
c1ac6996 345 @echo ">>> convert4r4 script built"
61ec970d
PH
346
347
8523533c
TK
348# These are objects of optional features. They are always compiled, but
349# if the corresponding #defines are not set, they wind up empty and
350# are thrown away by the linker.
351
352OBJ_WITH_CONTENT_SCAN = malware.o mime.o regex.o spam.o spool_mbox.o
ed0512a1
JH
353OBJ_EXPERIMENTAL = bmi_spam.o \
354 dane.o \
355 dcc.o \
356 dmarc.o \
357 imap_utf7.o \
358 spf.o \
359 srs.o \
360 utf8.o
8523533c 361
61ec970d
PH
362# Targets for final binaries; the main one has a build number which is
363# updated each time. We don't bother with that for the auxiliaries.
364
c6fa5dfa
PP
365OBJ_LOOKUPS = lookups/lf_quote.o lookups/lf_check_file.o lookups/lf_sqlperform.o
366
f4d091fb 367OBJ_EXIM = acl.o base64.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o \
61ec970d 368 directory.o dns.o drtables.o enq.o exim.o expand.o filter.o \
42055a33 369 filtertest.o globals.o dkim.o dkim_transport.o hash.o \
61ec970d
PH
370 header.o host.o ip.o log.o lss.o match.o moan.o \
371 os.o parse.o queue.o \
372 rda.o readconf.o receive.o retry.o rewrite.o rfc2047.o \
373 route.o search.o sieve.o smtp_in.o smtp_out.o spool_in.o spool_out.o \
a799883d 374 std-crypto.o store.o string.o tls.o tod.o transport.o tree.o verify.o \
d185889f 375 environment.o macro.o \
c6fa5dfa 376 $(OBJ_LOOKUPS) \
8523533c 377 local_scan.o $(EXIM_PERL) $(OBJ_WITH_CONTENT_SCAN) \
03d5892b 378 $(OBJ_EXPERIMENTAL)
61ec970d 379
24697698
JH
380exim: buildlookups buildauths pdkim/pdkim.a \
381 buildrouters buildtransports \
5901f0ab 382 $(OBJ_EXIM) version.o
c1ac6996
PH
383 @echo "$(LNCC) -o exim"
384 $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \
61ec970d 385 routers/routers.a transports/transports.a lookups/lookups.a \
80a47a2c 386 auths/auths.a pdkim/pdkim.a \
61ec970d
PH
387 $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \
388 $(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \
8eb9f5bd 389 $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS)
61ec970d
PH
390 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
391 echo $(STRIP_COMMAND) exim; \
392 $(STRIP_COMMAND) exim; \
393 fi
394 $(EXIM_CHMOD)
395 @echo " "
396 @echo ">>> exim binary built"
397 @echo " "
398
399# The utility for dumping the contents of an exim database
400
401OBJ_DUMPDB = exim_dumpdb.o util-os.o util-store.o
402
403exim_dumpdb: $(OBJ_DUMPDB)
c1ac6996
PH
404 @echo "$(LNCC) -o exim_dumpdb"
405 $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LFLAGS) $(OBJ_DUMPDB) \
61ec970d
PH
406 $(LIBS) $(EXTRALIBS) $(DBMLIB)
407 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
408 echo $(STRIP_COMMAND) exim_dumpdb; \
409 $(STRIP_COMMAND) exim_dumpdb; \
410 fi
61ec970d
PH
411 @echo ">>> exim_dumpdb utility built"
412 @echo " "
413
414# The utility for interrogating/fixing the contents of an exim database
415
416OBJ_FIXDB = exim_fixdb.o util-os.o util-store.o
417
24697698 418exim_fixdb: $(OBJ_FIXDB) buildauths
c1ac6996
PH
419 @echo "$(LNCC) -o exim_fixdb"
420 $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LFLAGS) $(OBJ_FIXDB) \
c99ce5c9 421 auths/auths.a $(LIBS) $(EXTRALIBS) $(DBMLIB)
61ec970d
PH
422 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
423 echo $(STRIP_COMMAND) exim_fixdb; \
424 $(STRIP_COMMAND) exim_fixdb; \
425 fi
61ec970d
PH
426 @echo ">>> exim_fixdb utility built"
427 @echo " "
428
429# The utility for tidying the contents of an exim database
430
431OBJ_TIDYDB = exim_tidydb.o util-os.o util-store.o
432
433exim_tidydb: $(OBJ_TIDYDB)
c1ac6996
PH
434 @echo "$(LNCC) -o exim_tidydb"
435 $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LFLAGS) $(OBJ_TIDYDB) \
61ec970d
PH
436 $(LIBS) $(EXTRALIBS) $(DBMLIB)
437 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
438 echo $(STRIP_COMMAND) exim_tidydb; \
439 $(STRIP_COMMAND) exim_tidydb; \
440 fi
61ec970d
PH
441 @echo ">>> exim_tidydb utility built"
442 @echo " "
443
444# The utility for building dbm files
445
446exim_dbmbuild: exim_dbmbuild.o
c1ac6996 447 @echo "$(LNCC) -o exim_dbmbuild"
9070e423 448 $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LFLAGS) exim_dbmbuild.o \
61ec970d
PH
449 $(LIBS) $(EXTRALIBS) $(DBMLIB)
450 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
451 echo $(STRIP_COMMAND) exim_dbmbuild; \
452 $(STRIP_COMMAND) exim_dbmbuild; \
453 fi
61ec970d
PH
454 @echo ">>> exim_dbmbuild utility built"
455 @echo " "
456
457# The utility for locking a mailbox while messing around with it
458
3ae1aa79 459exim_lock: exim_lock.c os.h
c1ac6996
PH
460 @echo "$(CC) exim_lock.c"
461 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) exim_lock.c
462 @echo "$(LNCC) -o exim_lock"
463 $(FE)$(LNCC) -o exim_lock $(LFLAGS) exim_lock.o \
61ec970d
PH
464 $(LIBS) $(EXTRALIBS)
465 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
466 echo $(STRIP_COMMAND) exim_lock; \
467 $(STRIP_COMMAND) exim_lock; \
468 fi
61ec970d
PH
469 @echo ">>> exim_lock utility built"
470 @echo " "
471
472# The X-based Exim monitor program's binary part. There's a macro for cutting
473# out the modified TextPop module, because some antique link editors cannot
474# handle the fact that it is redefining things that are found later in the
475# Xaw library.
476
477# Object modules that are the unique Eximon modules
478
479MONBIN = em_StripChart.o $(EXIMON_TEXTPOP) em_globals.o em_init.o \
480 em_log.o em_main.o em_menu.o em_queue.o em_strip.o \
481 em_text.o em_xs.o
482
483# The complete modules list also includes some specially compiled versions of
484# code from the main Exim source tree.
485
41313d92
JH
486OBJ_MONBIN = util-spool_in.o \
487 util-store.o \
488 util-string.o \
489 util-queue.o \
571b2715 490 util-tod.o \
41313d92
JH
491 tree.o \
492 $(MONBIN)
61ec970d 493
8eb9f5bd 494eximon.bin: $(EXIMON_EDITME) eximon $(OBJ_MONBIN) \
61ec970d 495 ../exim_monitor/em_version.c
c1ac6996
PH
496 @echo "$(CC) exim_monitor/em_version.c"
497 $(FE)$(CC) -o em_version.o -c \
61ec970d 498 $(CFLAGS) $(XINCLUDE) -I. ../exim_monitor/em_version.c
c1ac6996
PH
499 @echo "$(LNCC) -o eximon.bin"
500 $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \
48dd94fd 501 $(OBJ_MONBIN) -lXaw -lXmu -lXt -lXext -lX11 $(PCRE_LIBS) \
61ec970d
PH
502 $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc
503 @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
504 echo $(STRIP_COMMAND) eximon.bin; \
505 $(STRIP_COMMAND) eximon.bin; \
506 fi
61ec970d
PH
507 @echo ">>> exim monitor binary built"
508 @echo " "
509
510
511# Compile step for most of the exim modules. HDRS is a list of headers
4c04137d 512# which cause everything to be rebuilt. PHDRS is the same, for the use
61ec970d
PH
513# of routers, transports, and authenticators. I can't find a way of doing this
514# in one. This list is overkill, but it doesn't really take much time to
515# rebuild Exim on a modern computer.
516
5fb822fc
JH
517HDRS = blob.h \
518 config.h \
13510a25
HSHR
519 dbfunctions.h \
520 dbstuff.h \
521 exim.h \
522 functions.h \
523 globals.h \
5fb822fc 524 hash.h \
13510a25
HSHR
525 local_scan.h \
526 macros.h \
527 mytypes.h \
5fb822fc 528 sha_ver.h \
13510a25
HSHR
529 structs.h \
530 os.h
531PHDRS = ../config.h \
532 ../dbfunctions.h \
533 ../dbstuff.h \
534 ../exim.h \
535 ../functions.h \
536 ../globals.h \
537 ../local_scan.h \
538 ../macros.h \
539 ../mytypes.h \
540 ../structs.h \
541 ../os.h
61ec970d
PH
542
543.SUFFIXES: .o .c
c1ac6996
PH
544.c.o:; @echo "$(CC) $*.c"
545 $(FE)$(CC) -c $(CFLAGS) -I. $(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE) $*.c
61ec970d 546
5901f0ab
TF
547# Update Exim's version information and build the version object.
548
549version.h::
550 @../scripts/reversion
551
c6fa5dfa
PP
552cnumber.h: version.h
553
5901f0ab
TF
554version.o: $(HDRS) cnumber.h version.h version.c
555
61ec970d
PH
556# This is the dummy module for use by test compiles of individual modules. It
557# contains functions such as log_write() that may be called from bits of Exim
558# in the tested code.
559
560dummies.o: dummies.c
561
562# Compile instructions for perl.o for when EXIM_PERL is set
563
564perl.o: $(HDRS) perl.c
c1ac6996
PH
565 @echo "$(PERL_CC) perl.c"
566 $(FE)$(PERL_CC) $(PERL_CCOPTS) $(CFLAGS) $(INCLUDE) -c perl.c
61ec970d
PH
567
568# Compile instructions for the database utility modules
569
570exim_dumpdb.o: $(HDRS) exim_dbutil.c
c1ac6996
PH
571 @echo "$(CC) -DEXIM_DUMPDB exim_dbutil.c"
572 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) \
61ec970d
PH
573 -DCOMPILE_UTILITY \
574 -DEXIM_DUMPDB \
575 -o exim_dumpdb.o exim_dbutil.c
576
577exim_fixdb.o: $(HDRS) exim_dbutil.c
c1ac6996
PH
578 @echo "$(CC) -DEXIM_FIXDB exim_dbutil.c"
579 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) \
61ec970d
PH
580 -DCOMPILE_UTILITY \
581 -DEXIM_FIXDB \
582 -o exim_fixdb.o exim_dbutil.c
583
584exim_tidydb.o: $(HDRS) exim_dbutil.c
c1ac6996
PH
585 @echo "$(CC) -DEXIM_TIDYDB exim_dbutil.c"
586 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) \
61ec970d
PH
587 -DCOMPILE_UTILITY \
588 -DEXIM_TIDYDB \
589 -o exim_tidydb.o exim_dbutil.c
590
591# Compile instructions for exim_dbmbuild
592
593exim_dbmbuild.o: $(HDRS) exim_dbmbuild.c
c1ac6996 594 @echo "$(CC) exim_dbmbuild.c"
0a6c178c
JH
595 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY \
596 -o exim_dbmbuild.o exim_dbmbuild.c
61ec970d
PH
597
598# Utilities use special versions of some modules - typically with debugging
599# calls cut out.
600
601util-spool_in.o: $(HDRS) spool_in.c
c1ac6996
PH
602 @echo "$(CC) -DCOMPILE_UTILITY spool_in.c"
603 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY -o util-spool_in.o spool_in.c
61ec970d
PH
604
605util-store.o: $(HDRS) store.c
c1ac6996
PH
606 @echo "$(CC) -DCOMPILE_UTILITY store.c"
607 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY -o util-store.o store.c
61ec970d
PH
608
609util-string.o: $(HDRS) string.c
c1ac6996
PH
610 @echo "$(CC) -DCOMPILE_UTILITY string.c"
611 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY -o util-string.o string.c
61ec970d 612
41313d92
JH
613util-queue.o: $(HDRS) queue.c
614 @echo "$(CC) -DCOMPILE_UTILITY queue.c"
615 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY -o util-queue.o queue.c
616
571b2715
JH
617util-tod.o: $(HDRS) tod.c
618 @echo "$(CC) -DCOMPILE_UTILITY tod.c"
619 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY -o util-tod.o tod.c
620
61ec970d 621util-os.o: $(HDRS) os.c
c1ac6996
PH
622 @echo "$(CC) -DCOMPILE_UTILITY os.c"
623 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) \
61ec970d
PH
624 -DCOMPILE_UTILITY \
625 -DOS_LOAD_AVERAGE \
626 -DFIND_RUNNING_INTERFACES \
627 -o util-os.o os.c
628
629# The local scan module depends only on its own special header, and is compiled
630# from a source whose location is set by configuration.
631
7864a644 632local_scan.o: config local_scan.h ../$(LOCAL_SCAN_SOURCE)
c1ac6996
PH
633 @echo "$(CC) local_scan.c"
634 $(FE)$(CC) -c $(CFLAGS) -I. $(INCLUDE) -o local_scan.o ../$(LOCAL_SCAN_SOURCE)
61ec970d
PH
635
636# Dependencies for the "ordinary" exim modules
637
638acl.o: $(HDRS) acl.c
f4d091fb 639base64.o: $(HDRS) mime.h base64.c
61ec970d
PH
640child.o: $(HDRS) child.c
641crypt16.o: $(HDRS) crypt16.c
642daemon.o: $(HDRS) daemon.c
643dbfn.o: $(HDRS) dbfn.c
644debug.o: $(HDRS) debug.c
e39fdc85 645deliver.o: $(HDRS) transports/smtp.h deliver.c
61ec970d
PH
646directory.o: $(HDRS) directory.c
647dns.o: $(HDRS) dns.c
648enq.o: $(HDRS) enq.c
649exim.o: $(HDRS) exim.c
650expand.o: $(HDRS) expand.c
bc3c7bb7 651environment.o: $(HDRS) environment.c
61ec970d
PH
652filter.o: $(HDRS) filter.c
653filtertest.o: $(HDRS) filtertest.c
654globals.o: $(HDRS) globals.c
5fb822fc 655hash.o: $(HDRS) hash.c
61ec970d
PH
656header.o: $(HDRS) header.c
657host.o: $(HDRS) host.c
658ip.o: $(HDRS) ip.c
659log.o: $(HDRS) log.c
660lss.o: $(HDRS) lss.c
661match.o: $(HDRS) match.c
662moan.o: $(HDRS) moan.c
43ff44e9 663os.o: $(HDRS) $(OS_C_INCLUDES) os.c
61ec970d
PH
664parse.o: $(HDRS) parse.c
665queue.o: $(HDRS) queue.c
666rda.o: $(HDRS) rda.c
667readconf.o: $(HDRS) readconf.c
668receive.o: $(HDRS) receive.c
669retry.o: $(HDRS) retry.c
670rewrite.o: $(HDRS) rewrite.c
671rfc2047.o: $(HDRS) rfc2047.c
672route.o: $(HDRS) route.c
673search.o: $(HDRS) search.c
674sieve.o: $(HDRS) sieve.c
675smtp_in.o: $(HDRS) smtp_in.c
676smtp_out.o: $(HDRS) smtp_out.c
677spool_in.o: $(HDRS) spool_in.c
678spool_out.o: $(HDRS) spool_out.c
a799883d 679std-crypto.o: $(HDRS) std-crypto.c
61ec970d
PH
680store.o: $(HDRS) store.c
681string.o: $(HDRS) string.c
dfe7d917 682tls.o: $(HDRS) tls.c \
06cf6fdc
JH
683 tls-gnu.c tlscert-gnu.c \
684 tls-openssl.c tlscert-openssl.c
61ec970d
PH
685tod.o: $(HDRS) tod.c
686transport.o: $(HDRS) transport.c
687tree.o: $(HDRS) tree.c
9be4572b 688verify.o: $(HDRS) transports/smtp.h verify.c
3b957582 689dkim.o: $(HDRS) pdkim/pdkim.h dkim.c
42055a33 690dkim_transport.o: $(HDRS) dkim_transport.c
8523533c
TK
691
692# Dependencies for WITH_CONTENT_SCAN modules
693
694malware.o: $(HDRS) malware.c
f4d091fb 695mime.o: $(HDRS) mime.h mime.c
8523533c
TK
696regex.o: $(HDRS) regex.c
697spam.o: $(HDRS) spam.c
698spool_mbox.o: $(HDRS) spool_mbox.c
699
700
8523533c
TK
701# Dependencies for EXPERIMENTAL_* modules
702
3b957582
JB
703bmi_spam.o: $(HDRS) bmi_spam.c
704dane.o: $(HDRS) dane.c dane-gnu.c dane-openssl.c
705dcc.o: $(HDRS) dcc.h dcc.c
706dmarc.o: $(HDRS) pdkim/pdkim.h dmarc.h dmarc.c
ed0512a1 707imap_utf7.o: $(HDRS) imap_utf7.c
3b957582
JB
708spf.o: $(HDRS) spf.h spf.c
709srs.o: $(HDRS) srs.h srs.c
710utf8.o: $(HDRS) utf8.c
8523533c 711
61ec970d
PH
712# The module containing tables of available lookups, routers, auths, and
713# transports must be rebuilt if any of them are. However, because the makefiles
714# for the drivers are always run, we don't actually put the dependencies here,
715# because if we do, some version of "make" (e.g. IRIX) insist on rebuilding
716# drtables.o even though the .a files haven't in fact been updated. Instead
717# it is arranged that the lower-level makefiles remove drtables.o when they
718# rebuild the .a files.
719
720drtables.o: $(HDRS) drtables.c
721
c6fa5dfa
PP
722# We depend upon object files built as part of building the lookups library
723# When using parallel make, we don't have the dependency to force building
724# in the sub-directory unless we force that dependency:
725
24697698 726$(OBJ_LOOKUPS): buildlookups
61ec970d
PH
727
728# The exim monitor's private modules - the sources live in a private
729# subdirectory. The final binary combines the private modules with some
730# modules from the main exim binary.
731
732em_StripChart.o: ../exim_monitor/em_StripChart.c
733em_TextPop.o: ../exim_monitor/em_TextPop.c
734em_globals.o: ../exim_monitor/em_globals.c ../exim_monitor/em_hdr.h
735em_init.o: ../exim_monitor/em_init.c ../exim_monitor/em_hdr.h
736em_log.o: ../exim_monitor/em_log.c ../exim_monitor/em_hdr.h
737em_main.o: ../exim_monitor/em_main.c ../exim_monitor/em_hdr.h
738em_menu.o: ../exim_monitor/em_menu.c ../exim_monitor/em_hdr.h
739em_queue.o: ../exim_monitor/em_queue.c ../exim_monitor/em_hdr.h
740em_strip.o: ../exim_monitor/em_strip.c ../exim_monitor/em_hdr.h
741em_text.o: ../exim_monitor/em_text.c ../exim_monitor/em_hdr.h
742em_xs.o: ../exim_monitor/em_xs.c ../exim_monitor/em_hdr.h
743em_version.o: ../exim_monitor/em_version.c ../exim_monitor/em_hdr.h
744$(MONBIN): $(HDRS)
c1ac6996
PH
745 @echo "$(CC) exim_monitor/`echo $@ | sed 's/o$$/c/'`"
746 $(FE)$(CC) -o $@ -c $(CFLAGS) -I. -I../exim_monitor $(INCLUDE) $(XINCLUDE) \
61ec970d
PH
747 ../exim_monitor/`echo $@ | sed 's/o$$/c/'`
748
749
23510047 750# Targets for the various libraries that Exim uses.
61ec970d 751
61ec970d
PH
752# The lookups library.
753
7864a644 754buildlookups: config
7f2a2a43 755 @cd lookups && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" \
5901f0ab
TF
756 CFLAGS_DYNAMIC="$(CFLAGS_DYNAMIC)" HDRS="../version.h $(PHDRS)" \
757 FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" \
7f2a2a43
PP
758 INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE) $(LOOKUP_INCLUDE)"
759 @echo " "
61ec970d
PH
760
761# The routers library.
762
7864a644 763buildrouters: config
7f2a2a43 764 @cd routers && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" \
ebcb507f 765 FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" HDRS="$(PHDRS)" \
7f2a2a43
PP
766 INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE)"
767 @echo " "
61ec970d
PH
768
769# The transports library.
770
7864a644 771buildtransports: config
7f2a2a43 772 @cd transports && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" \
ebcb507f 773 FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" HDRS="$(PHDRS)" \
7f2a2a43
PP
774 INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE)"
775 @echo " "
61ec970d
PH
776
777# The library of authorization modules
778
7864a644 779buildauths: config
7f2a2a43 780 @cd auths && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" \
ebcb507f 781 FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" HDRS="$(PHDRS)" \
7f2a2a43
PP
782 INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE)"
783 @echo " "
61ec970d 784
80a47a2c
TK
785# The PDKIM library
786
22476721 787buildpdkim: pdkim/pdkim.a
7864a644 788pdkim/pdkim.a: config
7f2a2a43 789 @cd pdkim && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" \
80a47a2c 790 FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" HDRS="$(PHDRS)" \
7f2a2a43
PP
791 INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE)"
792 @echo " "
80a47a2c 793
61ec970d
PH
794# The "clean", "install", and "makefile" targets just pass themselves back to
795# the main Exim makefile. These targets will be obeyed only if "make" is obeyed
796# for them in the build directory.
797
798clean install makefile:; cd ..; $(MAKE) $(MFLAGS) build=$(build) $@
799
800# Targets for building stand-alone testing programs for basic testing of
801# some of the building blocks. These are not integrated with the makefile-
802# building targets. If you change something that is going to cause the
803# makefile to be rebuilt, you must run "make makefile" before running one
804# of these.
805
806# The testing programs use different versions of some modules - usually
807# with bits cut out that are not relevant to the test in hand. For those
808# that are used by several tests, we use a different name.
809
810sa-globals.o: $(HDRS) globals.c
811 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -o sa-globals.o globals.c
812
813sa-os.o: $(HDRS) os.c
814 $(CC) -c $(CFLAGS) $(INCLUDE) \
815 -DFIND_RUNNING_INTERFACES \
816 -o sa-os.o os.c
817
818# These are the test targets themselves
819
820test_dbfn: config.h dbfn.c dummies.o sa-globals.o sa-os.o store.o \
505d976a 821 string.o tod.o version.o utf8.o
61ec970d 822 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE dbfn.c
92e84038 823 $(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY store.c
61ec970d
PH
824 $(LNCC) -o test_dbfn $(LFLAGS) dbfn.o \
825 dummies.o sa-globals.o sa-os.o store.o string.o \
505d976a 826 tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LDFLAGS)
92e84038 827 rm -f dbfn.o store.o
61ec970d 828
9edc04ce 829test_host: config.h child.c host.c dns.c dummies.c sa-globals.o os.o \
e7726cbf
PH
830 store.o string.o tod.o tree.o
831 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST child.c
61ec970d
PH
832 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST host.c
833 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dns.c
834 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dummies.c
835 $(LNCC) -o test_host $(LFLAGS) \
e7726cbf
PH
836 host.o child.o dns.o dummies.o sa-globals.o os.o store.o string.o \
837 tod.o tree.o $(LIBS) $(LIBRESOLV)
838 rm -f child.o dummies.o host.o dns.o
61ec970d 839
505d976a 840test_os: os.h os.c dummies.o sa-globals.o store.o string.o tod.o utf8.o
61ec970d
PH
841 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE os.c
842 $(LNCC) -o test_os $(LFLAGS) os.o dummies.o \
505d976a 843 sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LDFLAGS)
61ec970d
PH
844 rm -f os.o
845
846test_parse: config.h parse.c dummies.o sa-globals.o \
505d976a 847 store.o string.o tod.o version.o utf8.o
61ec970d
PH
848 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE parse.c
849 $(LNCC) -o test_parse $(LFLAGS) parse.o \
505d976a
HSHR
850 dummies.o sa-globals.o store.o string.o tod.o version.o \
851 utf8.o $(LDFLAGS)
61ec970d
PH
852 rm -f parse.o
853
505d976a 854test_string: config.h string.c dummies.o sa-globals.o store.o tod.o utf8.o
61ec970d
PH
855 $(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE string.c
856 $(LNCC) -o test_string $(LFLAGS) -DSTAND_ALONE string.o \
505d976a 857 dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LDFLAGS)
61ec970d
PH
858 rm -f string.o
859
860# End