Index: /trunk/psLib/src/Makefile.Globals
===================================================================
--- /trunk/psLib/src/Makefile.Globals	(revision 1136)
+++ /trunk/psLib/src/Makefile.Globals	(revision 1137)
@@ -5,6 +5,6 @@
 ##  Assumptions:    Variable "prefix" already defined
 ##
-##  $Revision: 1.11 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-06-15 02:45:42 $
+##  $Revision: 1.12 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-06-30 01:09:12 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -44,4 +44,8 @@
 CFLAGS := -O0 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -pipe
 
+ifdef NO_TRACE
+CFLAGS := $(CFLAGS) -DPS_NO_TRACE=1
+endif
+ 
 # Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries.
 
Index: /trunk/psLib/src/sys/psTrace.c
===================================================================
--- /trunk/psLib/src/sys/psTrace.c	(revision 1136)
+++ /trunk/psLib/src/sys/psTrace.c	(revision 1137)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-24 03:12:19 $
+ *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-30 01:09:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -31,4 +31,7 @@
  this purpose.
  *****************************************************************************/
+
+#ifndef PS_NO_TRACE
+
 #include <stdlib.h>
 #include <stdio.h>
@@ -418,2 +421,4 @@
     p_psTraceFP = fp;
 }
+
+#endif
Index: /trunk/psLib/src/sys/psTrace.h
===================================================================
--- /trunk/psLib/src/sys/psTrace.h	(revision 1136)
+++ /trunk/psLib/src/sys/psTrace.h	(revision 1137)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-24 03:12:19 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-30 01:09:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -16,6 +16,27 @@
 #if !defined(PS_TRACE_H)
 #define PS_TRACE_H 1
+
 #define UNKNOWN_TRACE_LEVEL -9999         // we don't know this name's level
 #define DEFAULT_TRACE_LEVEL 0
+
+
+/** \addtogroup LogTrace
+ *  \{
+ */
+
+/** Functions **************************************************************/
+
+//#define PS_NO_TRACE 1   ///< to turn off all tracing
+
+#if defined(PS_NO_TRACE)
+#define psTrace(facil, level, ...) (void)0 /* do nothing */
+#define p_psTrace(facil, level, ...)  (void)0 /* do nothing */
+#define psTraceSetLevel(facil,level) 0
+#define psTraceGetLevel(facil) 0
+#define psTraceReset() (void)0 /* do nothing */
+#define psTraceFree() (void)0 /* do nothing */
+#define psTracePrintLevels() (void)0 /* do nothing */
+#define psTraceSetDestination(fp) (void)0 /* do nothing */
+#else
 
 /** Basic structure for the component tree.  A component is a string of the
@@ -31,10 +52,4 @@
 }
 p_psComponent;
-
-/** \addtogroup LogTrace
- *  \{
- */
-
-/** Functions **************************************************************/
 
 #ifndef DOXYGEN
@@ -73,11 +88,5 @@
 /* \} */ // End of SystemGroup Functions
 
-//#define PS_NO_TRACE 1   ///< to turn off all tracing
-
-#if defined(PS_NO_TRACE)
-#  define psTrace(facil, level, ...) /* do nothing */
-#else
-#  define psTrace(facil, level, ...) \
-p_psTrace(facil, level, __VA_ARGS__)
+#define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
 #endif
 
Index: /trunk/psLib/src/sysUtils/psTrace.c
===================================================================
--- /trunk/psLib/src/sysUtils/psTrace.c	(revision 1136)
+++ /trunk/psLib/src/sysUtils/psTrace.c	(revision 1137)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-24 03:12:19 $
+ *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-30 01:09:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -31,4 +31,7 @@
  this purpose.
  *****************************************************************************/
+
+#ifndef PS_NO_TRACE
+
 #include <stdlib.h>
 #include <stdio.h>
@@ -418,2 +421,4 @@
     p_psTraceFP = fp;
 }
+
+#endif
Index: /trunk/psLib/src/sysUtils/psTrace.d
===================================================================
--- /trunk/psLib/src/sysUtils/psTrace.d	(revision 1136)
+++ /trunk/psLib/src/sysUtils/psTrace.d	(revision 1137)
@@ -1,1 +1,1 @@
-psTrace.o psTrace.d : psTrace.c psMemory.h psTrace.h psString.h psError.h
+psTrace.o psTrace.d : psTrace.c
Index: /trunk/psLib/src/sysUtils/psTrace.h
===================================================================
--- /trunk/psLib/src/sysUtils/psTrace.h	(revision 1136)
+++ /trunk/psLib/src/sysUtils/psTrace.h	(revision 1137)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-24 03:12:19 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-30 01:09:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -16,6 +16,27 @@
 #if !defined(PS_TRACE_H)
 #define PS_TRACE_H 1
+
 #define UNKNOWN_TRACE_LEVEL -9999         // we don't know this name's level
 #define DEFAULT_TRACE_LEVEL 0
+
+
+/** \addtogroup LogTrace
+ *  \{
+ */
+
+/** Functions **************************************************************/
+
+//#define PS_NO_TRACE 1   ///< to turn off all tracing
+
+#if defined(PS_NO_TRACE)
+#define psTrace(facil, level, ...) (void)0 /* do nothing */
+#define p_psTrace(facil, level, ...)  (void)0 /* do nothing */
+#define psTraceSetLevel(facil,level) 0
+#define psTraceGetLevel(facil) 0
+#define psTraceReset() (void)0 /* do nothing */
+#define psTraceFree() (void)0 /* do nothing */
+#define psTracePrintLevels() (void)0 /* do nothing */
+#define psTraceSetDestination(fp) (void)0 /* do nothing */
+#else
 
 /** Basic structure for the component tree.  A component is a string of the
@@ -31,10 +52,4 @@
 }
 p_psComponent;
-
-/** \addtogroup LogTrace
- *  \{
- */
-
-/** Functions **************************************************************/
 
 #ifndef DOXYGEN
@@ -73,11 +88,5 @@
 /* \} */ // End of SystemGroup Functions
 
-//#define PS_NO_TRACE 1   ///< to turn off all tracing
-
-#if defined(PS_NO_TRACE)
-#  define psTrace(facil, level, ...) /* do nothing */
-#else
-#  define psTrace(facil, level, ...) \
-p_psTrace(facil, level, __VA_ARGS__)
+#define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
 #endif
 
