From 398e180fdfc14e0c3a7e37097bd8787dfc5eda56 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?=
 <robertk@mathematik.uni-stuttgart.de>
Date: Fri, 15 Jan 2010 12:58:14 +0000
Subject: [PATCH] some changes.

git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@1175 0d966ed9-3843-0410-af09-ebfb50bd7c74
---
 misc/examples/Makefile.am | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/misc/examples/Makefile.am b/misc/examples/Makefile.am
index 559dd2858..574ff6608 100644
--- a/misc/examples/Makefile.am
+++ b/misc/examples/Makefile.am
@@ -1,15 +1,24 @@
 # Makefile.am for building the example program 
 AUTOMAKE_OPTIONS = foreign 1.5
 
-CXXFLAGS=-O3 -funroll-loops -finline-functions -DNDEBUG 
+#CXXFLAGS=-O3 -funroll-loops -finline-functions -DNDEBUG 
+CXXFLAGS=-g -Wall 
+#CXX=g++-4.3.2
+
+#MPI_LIBS=-pthread -L/usr/lib64 -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
 
 # work arround for automake versions < 1.8 
 SOURCE_DIR=../../src
-AM_CPPFLAGS = -I$(SOURCE_DIR) -I$(SOURCE_DIR)/serial -I$(SOURCE_DIR)/parallel -I$(SOURCE_DIR)/duneinterface 
+AM_CPPFLAGS = $(ALL_PKG_CPPFLAGS) -I$(SOURCE_DIR) -I$(SOURCE_DIR)/serial -I$(SOURCE_DIR)/parallel -I$(SOURCE_DIR)/duneinterface 
 
 # headers to install 
-noinst_PROGRAMS = example sizes adapt
-example_SOURCES = example.cc $(SOURCE_DIR)/alugrid_serial.cc 
-sizes_SOURCES = sizes.cc $(SOURCE_DIR)/alugrid_serial.cc 
-adapt_SOURCES = adapt.cc $(SOURCE_DIR)/alugrid_2d.cc 
+noinst_PROGRAMS = loadlb # example sizes # adapt
+#example_SOURCES = example.cc $(SOURCE_DIR)/alugrid_serial.cc 
+#sizes_SOURCES = sizes.cc $(SOURCE_DIR)/alugrid_serial.cc 
+#adapt_SOURCES = adapt.cc $(SOURCE_DIR)/alugrid_2d.cc $(SOURCE_DIR)/alugrid_serial.cc
+loadlb_SOURCES = loadlb.cc  $(SOURCE_DIR)/alugrid_serial.cc $(SOURCE_DIR)/alugrid_parallel.cc
+loadlb_LDADD = $(PARTY_LDFLAGS) $(PARTY_LIBS) $(PARMETIS_LDFLAGS) $(PARMETIS_LIBS) $(METIS_LDFLAGS) $(METIS_LIBS) 
+
 #sizes_SOURCES = sizes.cc $(SOURCE_DIR)/alugrid_serial.cc $(SOURCE_DIR)/alugrid_parallel.cc 
+
+EXTRA_DIST=square.triangle 
-- 
GitLab