Skip to content

Commit

Permalink
Add -DLINUX option needed by get_memusage
Browse files Browse the repository at this point in the history
  • Loading branch information
rosinski committed Mar 30, 2008
1 parent 0e4802c commit 96511f4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions macros.make
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions macros.make.linux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions macros.make.sicortex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96511f4

Please sign in to comment.