diff --git a/demo/Makefile b/demo/Makefile
index 86418a8b7b45955ceac754397869356916cd4264..2a3d4d0036d34ce4a5195e2aef313fc1b2939319 100644
--- a/demo/Makefile
+++ b/demo/Makefile
@@ -8,6 +8,7 @@ USE_PARALLEL_AMDIS = 0      # 1 if AMDiS was compiled with parallel support, 0 o
 USE_OPENMP = 0              # 1 if AMDiS was compiled with OpenMP support, 0 otherwise
 USE_UMFPACK = 0             # 1 if AMDiS was compiled with UMFPACK library, 0 otherwise
 USE_MKL = 0                 # 1 if AMDiS was compiled with Intel MKL library, 0 otherwise
+USE_BOOST = 0               # 1 if AMDiS was compiled with Boost support, 0 otherwise
 USE_SERVER =                # mars, deimos or themisto. If no special server blank
 USE_COMPILER = gcc          # gcc  or icc
 USE_SMI = 0
@@ -16,6 +17,7 @@ DEBUG = 0
 
 AMDIS_DIR = /usr/local/AMDiS
 MPI_DIR =                   # on mars, deimos or themisto, leave this field blank
+BOOST_DIR =                 # if compiled with boost support, define here the boost directory
 SMI_DIR = 
 MPCCI_DIR = 
 
@@ -96,6 +98,9 @@ ifeq ($(strip $(USE_MPCCI)), 1)
 	LIBS += $(MPCCI_LIB) 
 endif
 
+ifeq ($(strip $(USE_BOOST)), 1)
+	LIBS += -L$(BOOST_DIR)/lib -lboost_iostreams
+endif
 
 
 # ============================================================================