--- Makefile.orig	2010-06-11 12:20:08.000000000 -0500
+++ Makefile	2010-06-15 15:42:27.893424629 -0500
@@ -6,6 +6,8 @@
 CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
 CFLAGS+= -Wmissing-declarations -Wredundant-decls
 CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
+CFLAGS+= -I%%LOCALBASE%%/include
+LDFLAGS+=	-L%%LOCALBASE%%/lib
 YFLAGS=
 MAN= ifstated.8 ifstated.conf.5
 LDADD+=-levent
