--- Makefile.in.orig	2012-02-03 15:32:12.000000000 +0100
+++ Makefile.in	2012-02-03 15:32:39.000000000 +0100
@@ -3,12 +3,12 @@
 #
 
 CC = @CC@
-CFLAGS = @CFLAGS@ @DEFS@ @NO_GETOPT@ @NO_LIBPAPER@ @NO_STRERROR@
+CFLAGS = @CFLAGS@ @CPPFLAGS@ @DEFS@ @NO_GETOPT@ @NO_LIBPAPER@ @NO_STRERROR@
 RANLIB = @RANLIB@
 
 INSTALL = @INSTALL@
 
-LDFLAGS = -L. -l$(TARGET) @LIBPAPER@
+LDFLAGS = -L. -l$(TARGET) @LIBPAPER@ @LDFLAGS@
 
 prefix = @prefix@
 BINDIR = $(prefix)/bin
