File: node3.html

package info (click to toggle)
gnustep-tutorial 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 772 kB
  • ctags: 194
  • sloc: makefile: 46; perl: 6
file content (75 lines) | stat: -rw-r--r-- 2,473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.43)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Enabling Debugging</TITLE>
<META NAME="description" CONTENT="Enabling Debugging">
<META NAME="keywords" CONTENT="WritingMakefiles">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="WritingMakefiles.css">

<LINK REL="next" HREF="node4.html">
<LINK REL="previous" HREF="node2.html">
<LINK REL="up" HREF="WritingMakefiles.html">
<LINK REL="next" HREF="node4.html">
</HEAD>

<BODY >
<B> Next:</B> <A NAME="tex2html44"
  HREF="node4.html">A first App</A>
<B>Up:</B> <A NAME="tex2html42"
  HREF="WritingMakefiles.html">Writing GNUstep Makefiles</A>
<B> Previous:</B> <A NAME="tex2html36"
  HREF="node2.html">A First Tool</A>
<BR> <P>

<!--End of Navigation Panel-->

<H1><A NAME="SECTION00030000000000000000">
Enabling Debugging</A>
</H1>
To compile this tool with debugging enabled, type in: 
<PRE>
make debug=yes
</PRE>
This will create an executable with debugging symbols (i.e., compiled
with the <TT>-g</TT> option), useful for debugging it with gdb; it
will also compile the tool using the <TT>-DDEBUG</TT> compiler flag,
which defines the preprocessor symbol <TT>DEBUG</TT> during the
compilation.  In this way, you may isolate code to be executed only
when compiling with the debug option typically as follows:
<PRE>
#ifdef DEBUG 
  /* Code compiled in only when debug=yes */
#endif
</PRE>
The debugging executable will be placed in: 
<PRE>
shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps
</PRE>
this allows you to keep both the debugging and the not-debugging 
executables, since they are in different trees.  
To install the debugging version, type <TT>make debug=yes install</TT> 
(note: this will overwrite the not-debugging version, if any, 
in the installation directory; only one can be installed at a time).
To clean the debugging version, type <TT>make debug=yes clean</TT>.

<P>
<BR><HR>
<ADDRESS>
Nicola Pero
2000-10-12
</ADDRESS>
</BODY>
</HTML>