From aa091f5c136d0f5b13ca6d6eb3e2dd0bcadcf8eb Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 15 Aug 2024 19:38:30 +0100 Subject: [PATCH] fix clang build --- src/src/routers/Makefile | 3 ++- src/src/transports/Makefile | 26 +++++++++++--------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/src/routers/Makefile b/src/src/routers/Makefile index 8ff3d81ab..738e35147 100644 --- a/src/src/routers/Makefile +++ b/src/src/routers/Makefile @@ -7,7 +7,8 @@ # nb: at build time, the version of this file used will have had some # extra variable definitions and prepended to it and module build rules -# interpolated below. This is done by scripts/drivers-Makefile. +# interpolated below. This is done by scripts/drivers-Makefile with +# definitions from scripts/Configure-Makefile. # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE diff --git a/src/src/transports/Makefile b/src/src/transports/Makefile index 8f759ecf0..43418fd22 100644 --- a/src/src/transports/Makefile +++ b/src/src/transports/Makefile @@ -6,13 +6,16 @@ # nb: at build time, the version of this file used will have had some # extra variable definitions and prepended to it and module build rules -# interpolated below. This is done by scripts/drivers-Makefile. +# interpolated below. This is done by scripts/drivers-Makefile with +# definitions from scripts/Configure-Makefile. # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE +OBJ += smtp_socks.o tf_maildir.o + all: transports.a $(MODS) -transports.a: $(OBJ) +transports.a: $(OBJ) smtp_socks.o tf_maildir.o @$(RM_COMMAND) -f transports.a @echo "$(AR) transports.a" @$(AR) transports.a $(OBJ) @@ -28,30 +31,23 @@ transports.a: $(OBJ) $(OBJ) $(MOD): $(HDRS) +appendfile.o: appendfile.c appendfile.h tf_maildir.h autoreply.o autoreply.so: autoreply.c autoreply.h lmtp.o lmtp.so: lmtp.c lmtp.h pipe.o pipe.so: pipe.c pipe.h queuefile.o queuefile.so: queuefile.c queuefile.h +smtp.o: smtp.c smtp.h +smtp_socks.o: smtp_socks.c smtp.h + +tf_maildir.o: tf_maildir.c tf_maildir.h appendfile.h -# These ones depend on more than one .c source -appendfile.o: appendfile.c appendfile.h tf_maildir.c tf_maildir.h - @echo "$(CC) appendfile.c tf_maildir.c" - $(FE)$(CC) $(CFLAGS) $(INCLUDE) appendfile.c tf_maildir.c -r -o $@ +# This depends on more than one .c source appendfile.so: appendfile.c appendfile.h tf_maildir.c tf_maildir.h @echo "$(CC) -shared appendfile.c tf_maildir.c" $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) \ appendfile.c tf_maildir.c -o $@ -smtp.o: smtp.c smtp_socks.c smtp.h - @echo "$(CC) smtp.c smtp_socks.c" - $(FE)$(CC) $(CFLAGS) $(INCLUDE) smtp.c smtp_socks.c -r -o $@ - -smtp.so: smtp.c smtp_socks.c smtp.h - @echo "$(CC) -shared smtp.c smtp_socks.c" - $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) \ - smtp.c smtp_socks.c -o $@ - # End -- 2.30.2