Debian Codegraph @

src/transports/Makefile

raw symbols SCIP
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.
4 #
5 # Copyright (c) The Exim Maintainers 2021 - 2026
6
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.
11
12 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
13
14 OBJ += tf_maildir.o
15
16 all: transports.a $(MODS)
17 $(FE):
18
19 transports.a: $(OBJ) tf_maildir.o
20 @$(RM_COMMAND) -f transports.a
21 @echo "$(AR) transports.a"
22 @$(AR) transports.a $(OBJ)
23 $(RANLIB) $@
24
25 .SUFFIXES: .o .c .so
26 .c.o:; @echo "$(CC) $*.c"
27 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
28
29 SO_FLAGS = -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS)
30 .c.so:; @echo "$(CC) -shared $*.c"
31 $(FE)$(CC) $(SO_FLAGS) $*.c -o $@
32
33
34 $(OBJ) $(MOD): $(HDRS)
35
36 appendfile.o: appendfile.c appendfile.h tf_maildir.h
37 autoreply.o autoreply.so: autoreply.c autoreply.h
38 lmtp.o lmtp.so: lmtp.c lmtp.h
39 pipe.o pipe.so: pipe.c pipe.h
40 queuefile.o queuefile.so: queuefile.c queuefile.h
41 smtp.o: smtp.c smtp.h
42
43 tf_maildir.o: tf_maildir.c tf_maildir.h appendfile.h
44
45
46
47 # This depends on more than one .c source
48
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 $@
52
53 # End