CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
-INCLUDES = -I$(top_srcdir) @CPPFLAGS@
+# add include dir . for sigmsg.h when building in different directory
+INCLUDES = -I$(top_srcdir) -I. @CPPFLAGS@
LEX = @LEX@
AWK = @AWK@
# 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