From 96511f41272fae7b456074b4883765488a27f779 Mon Sep 17 00:00:00 2001 From: rosinski Date: Sun, 30 Mar 2008 23:27:12 +0000 Subject: [PATCH] Add -DLINUX option needed by get_memusage --- Makefile | 4 ++++ macros.make | 3 +++ macros.make.linux | 3 +++ macros.make.sicortex | 3 +++ 4 files changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 005e4707..9448b65c 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ include macros.make LDFLAGS += $(ABIFLAGS) +ifeq ($(LINUX),yes) + CFLAGS += -DLINUX +endif + ifeq ($(FORTRAN),yes) OBJS += f_wrappers.o TESTS += ftests/all diff --git a/macros.make b/macros.make index 0cbdc9a4..90a7d3b4 100644 --- a/macros.make +++ b/macros.make @@ -8,6 +8,9 @@ CFLAGS = -g -O3 -finline-functions -Winline -Wall # Set ABI flags for non-default ABIs (e.g. 64-bit addressing) ABIFLAGS = +# Linux system or not? Used by get_memusage +LINUX = yes + # To enable OpenMP threading, set OPENMP=yes and define the compiler flag. Otherwise, # set OPENMP=no. OpenMP applications linked with GPTL as built with OPENMP=no will NOT # be thread-safe diff --git a/macros.make.linux b/macros.make.linux index 0cbdc9a4..90a7d3b4 100644 --- a/macros.make.linux +++ b/macros.make.linux @@ -8,6 +8,9 @@ CFLAGS = -g -O3 -finline-functions -Winline -Wall # Set ABI flags for non-default ABIs (e.g. 64-bit addressing) ABIFLAGS = +# Linux system or not? Used by get_memusage +LINUX = yes + # To enable OpenMP threading, set OPENMP=yes and define the compiler flag. Otherwise, # set OPENMP=no. OpenMP applications linked with GPTL as built with OPENMP=no will NOT # be thread-safe diff --git a/macros.make.sicortex b/macros.make.sicortex index 49c20bee..3c731cc7 100644 --- a/macros.make.sicortex +++ b/macros.make.sicortex @@ -8,6 +8,9 @@ CFLAGS = -g -O3 -inline -Winline -Wall # Set ABI flags for non-default ABIs (e.g. 64-bit addressing) ABIFLAGS = +# Linux system or not? Used by get_memusage +LINUX = yes + # To enable OpenMP threading, set OPENMP=yes and define the compiler flag. Otherwise, # set OPENMP=no. OpenMP applications linked with GPTL as built with OPENMP=no will NOT # be thread-safe