* docs/MAIL.FILTERING: added note on removing procmail -f or
[mmh] / sbr / Makefile.in
index 5f73e0f..a920958 100644 (file)
@@ -34,6 +34,8 @@ GNU_LIBTOOL = @GNU_LIBTOOL@
 LINT   = @LINT@
 LINTFLAGS = @LINTFLAGS@ 
 
+LIBOBJS = @LIBOBJS@
+
 mailspool    = @mailspool@
 sendmailpath = @sendmailpath@
 
@@ -52,7 +54,7 @@ COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(KRB4_INCLUDES) $(HESIOD_
 SIGNAL_H = @SIGNAL_H@
 
 # source for library functions
-SRCS = add.c addrsbr.c ambigsw.c atooi.c brkstring.c                   \
+SRCS = addrsbr.c ambigsw.c atooi.c brkstring.c                 \
        check_charset.c client.c closefds.c concat.c context_del.c      \
        context_find.c context_foil.c context_read.c                    \
        context_replace.c context_save.c copy.c                         \
@@ -78,9 +80,9 @@ SRCS = add.c addrsbr.c ambigsw.c atooi.c brkstring.c                  \
        m_msgdef.c mf.c utils.c
 
 # source for compatibility functions
-COMPAT = snprintf.c strdup.c strerror.c
+COMPAT = memmove.c snprintf.c strdup.c strerror.c
 
-OBJS = $(SRCS:.c=.o)
+OBJS = $(SRCS:.c=.o) $(LIBOBJS)
 
 # auxiliary files
 AUX = Makefile.in sigmsg.awk dtimep.lex
@@ -99,16 +101,18 @@ sigmsg.h: sigmsg.awk
 lint: sigmsg.h
        $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
 
-# Note that some lexes (for example flex 2.5.4) require that there
-# be no space between -o and the output filename.
+# Note that not all lexes support -o (it is not POSIX); also
+# some lexes will only accept '-n -t', not '-nt'.
+# Also, not all makes accept $< in non-pattern rules,
+# hence the explicit filenames here.
 dtimep.c: dtimep.lex
-       $(LEX) -o$@ dtimep.lex
+       $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
 
 client.o: client.c
-       $(COMPILE2) client.c
+       $(COMPILE2) $(srcdir)/client.c
 
 mts.o: mts.c
-       $(COMPILE2) mts.c
+       $(COMPILE2) $(srcdir)/mts.c
 
 pidstatus.o: sigmsg.h