-appendfile.o: $(HDRS) appendfile.c appendfile.h tf_maildir.h
-autoreply.o: $(HDRS) autoreply.c autoreply.h
-lmtp.o: $(HDRS) lmtp.c lmtp.h
-pipe.o: $(HDRS) pipe.c pipe.h
-smtp.o: $(HDRS) smtp.c smtp.h
-smtp_socks.o: $(HDRS) smtp_socks.c smtp.h
+SO_FLAGS = -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS)
+.c.so:; @echo "$(CC) -shared $*.c"
+ $(FE)$(CC) $(SO_FLAGS) $*.c -o $@
+
+
+$(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
+
+
+
+# This depends on more than one .c source