1 # Make file for building a library containing all the available transports and
2 # calling it transports.a. This is called from the main make file, after cd'ing
3 # to the transports subdirectory.
5 # Copyright (c) The Exim Maintainers 2021 - 2024
7 # nb: at build time, the version of this file used will have had some
8 # extra variable definitions and prepended to it and module build rules
9 # interpolated below. This is done by scripts/drivers-Makefile with
10 # definitions from scripts/Configure-Makefile.
12 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
14 OBJ += smtp_socks.o tf_maildir.o
16 all: transports.a $(MODS)
18 transports.a: $(OBJ) smtp_socks.o tf_maildir.o
19 @$(RM_COMMAND) -f transports.a
20 @echo "$(AR) transports.a"
21 @$(AR) transports.a $(OBJ)
25 .c.o:; @echo "$(CC) $*.c"
26 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
28 SO_FLAGS = -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS)
29 .c.so:; @echo "$(CC) -shared $*.c"
30 $(FE)$(CC) $(SO_FLAGS) $*.c -o $@
33 $(OBJ) $(MOD): $(HDRS)
35 appendfile.o: appendfile.c appendfile.h tf_maildir.h
36 autoreply.o autoreply.so: autoreply.c autoreply.h
37 lmtp.o lmtp.so: lmtp.c lmtp.h
38 pipe.o pipe.so: pipe.c pipe.h
39 queuefile.o queuefile.so: queuefile.c queuefile.h
41 smtp_socks.o: smtp_socks.c smtp.h
43 tf_maildir.o: tf_maildir.c tf_maildir.h appendfile.h
47 # This depends on more than one .c source
49 appendfile.so: appendfile.c appendfile.h tf_maildir.c tf_maildir.h
50 @echo "$(CC) -shared appendfile.c tf_maildir.c"
51 $(FE)$(CC) $(SO_FLAGS) appendfile.c tf_maildir.c -o $@