* patch #3966: Create a mh_xmalloc function to prevent mistakes when
[mmh] / sbr / Makefile.in
index 317a177..17d82e8 100644 (file)
@@ -75,7 +75,7 @@ SRCS = add.c addrsbr.c ambigsw.c atooi.c brkstring.c                  \
        seq_setprev.c seq_setunseen.c showfile.c signals.c              \
        smatch.c snprintb.c ssequal.c strcasecmp.c                      \
        strindex.c trimcpy.c uprf.c vfgets.c fmt_def.c                  \
-       m_msgdef.c mf.c
+       m_msgdef.c mf.c utils.c
 
 # source for compatibility functions
 COMPAT = snprintf.c strdup.c strerror.c
@@ -99,14 +99,16 @@ 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.
 dtimep.c: dtimep.lex
-       $(LEX) -nt $< > $@
+       $(LEX) -o$@ dtimep.lex
 
 client.o: client.c
-       $(COMPILE2) $<
+       $(COMPILE2) client.c
 
 mts.o: mts.c
-       $(COMPILE2) $<
+       $(COMPILE2) mts.c
 
 pidstatus.o: sigmsg.h
 
@@ -129,7 +131,7 @@ mostlyclean:
        rm -f *.o *~
 
 clean: mostlyclean
-       rm -f libmh.a sigmsg.h
+       rm -f libmh.a sigmsg.h dtimep.c
 
 distclean: clean
        rm -f Makefile
@@ -143,7 +145,7 @@ superclean: realclean
 subdir = sbr
 
 Makefile: Makefile.in ../config.status
-       cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
+       cd .. && ./config.status $(subdir)/$@
  
 distdir = ../`cat ../distname`/$(subdir)
 nmhdist: $(DIST)