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