Added more include directories to fix building in another directory.
[mmh] / sbr / Makefile.in
index 5da6f89..64ecb9e 100644 (file)
@@ -17,7 +17,9 @@ etcdir      = @sysconfdir@
 CC       = @CC@
 CFLAGS   = @CFLAGS@
 DEFS     = @DEFS@
-INCLUDES = -I$(top_srcdir) @CPPFLAGS@
+# add include dir . for sigmsg.h and .. for config.h when building
+# in different directory
+INCLUDES = -I$(top_srcdir) -I. -I.. @CPPFLAGS@
 
 LEX    = @LEX@
 AWK    = @AWK@
@@ -66,8 +68,8 @@ SRCS = addrsbr.c ambigsw.c brkstring.c  \
        seq_print.c seq_read.c seq_save.c seq_setcur.c  \
        seq_setprev.c seq_setunseen.c signals.c  \
        smatch.c snprintb.c strcasecmp.c  \
-       strindex.c trimcpy.c uprf.c vfgets.c fmt_def.c  \
-       mf.c utils.c m_mktemp.c
+       strindex.c trim.c trimcpy.c uprf.c vfgets.c fmt_def.c  \
+       mf.c utils.c m_mktemp.c seq_msgstats.c
 
 OBJS =  $(SRCS:.c=.o)
 
@@ -93,7 +95,7 @@ lint: sigmsg.h
 # Also, not all makes accept $< in non-pattern rules,
 # hence the explicit filenames here.
 dtimep.c: dtimep.lex
-       $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
+       $(LEX) -n -t $(srcdir)/dtimep.lex > $@
 
 pidstatus.o: sigmsg.h