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 .c.so:; @echo "$(CC) -shared $*.c"
29 $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
32 $(OBJ) $(MOD): $(HDRS)
34 appendfile.o: appendfile.c appendfile.h tf_maildir.h
35 autoreply.o autoreply.so: autoreply.c autoreply.h
36 lmtp.o lmtp.so: lmtp.c lmtp.h
37 pipe.o pipe.so: pipe.c pipe.h
38 queuefile.o queuefile.so: queuefile.c queuefile.h
40 smtp_socks.o: smtp_socks.c smtp.h
42 tf_maildir.o: tf_maildir.c tf_maildir.h appendfile.h
46 # This depends on more than one .c source
48 appendfile.so: appendfile.c appendfile.h tf_maildir.c tf_maildir.h
49 @echo "$(CC) -shared appendfile.c tf_maildir.c"
50 $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) \
51 appendfile.c tf_maildir.c -o $@