Revision: 158
http://c-mpi.svn.sourceforge.net/c-mpi/?rev=158&view=rev
Author: jmwozniak
Date: 2011-02-28 16:25:21 +0000 (Mon, 28 Feb 2011)
Log Message:
-----------
New S variable for -ggdb3
Modified Paths:
--------------
Makefile.in
Modified: Makefile.in
===================================================================
--- Makefile.in 2011-02-28 16:24:47 UTC (rev 157)
+++ Makefile.in 2011-02-28 16:25:21 UTC (rev 158)
@@ -11,6 +11,7 @@
# INPUT CONTROL VARIABLES
# D : if 1, turn on debugging output in CMPI programs
# G : if 1, certain tests wait for GDB to attach
+# S : if 1, turn on debugging symbols
# T : if 1, turn on MPE printf debugging
# V : if 1, turn on normal make output
@@ -91,6 +92,9 @@
ifeq ($(G),1)
GDB_WAIT="-D GDB_WAIT"
endif
+ifeq ($(S),1)
+ GGDB = 1
+endif
ifeq ($(T),1)
MPE =-mpe=mpitrace
endif
@@ -184,10 +188,15 @@
STRICT_CFLAGS = @STRICT_CFLAGS@
ifeq ($(DEBUG),1)
- CFLAGS += @RDYNAMIC@ -Wno-unused-variable -ggdb3
+ CFLAGS += @RDYNAMIC@ -Wno-unused-variable
else
CFLAGS += -O2
endif
+
+ifeq ($(GGDB),1)
+ CFLAGS += -ggdb3
+endif
+
# turn on large file support by default
CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
IFLAGS += -I $(srcdir)
@@ -407,7 +416,6 @@
# node executable is only built in the stand-alone node cases
# (e.g., KDA-2B)
-
node: src/cmpi/node.o $(CMPI)
$(Q) " MPICC $(@)"
$(E)$(MPICC) $(MPE) src/cmpi/node.o $(CMPI) $(LIBS) -o $(@)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|