--- vnc_reflector/Makefile.orig	2005-12-14 01:25:53.000000000 +0100
+++ vnc_reflector/Makefile	2005-12-14 01:28:05.000000000 +0100
@@ -14,10 +14,11 @@
 #
 # Variables you might want to edit: CFLAGS, CONFFLAGS
 
-IFLAGS =	-I.
+IFLAGS =	-I. -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
+OFLAGS =	-O2
 
 # Production
-CFLAGS =	-O2 $(IFLAGS)
+CFLAGS =	$(OFLAGS) $(IFLAGS)
 # Debug (strict)
 #CFLAGS =	-g -pedantic -Wall $(IFLAGS)
 # Debug (profiling)
@@ -29,7 +30,7 @@
 CONFFLAGS =	-DUSE_POLL
 
 # Link with zlib and JPEG libraries
-LDFLAGS =	-L/usr/local/lib -lz -ljpeg
+LDFLAGS =	-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lz -ljpeg
 
 PROG = 	vncreflector
 
