<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[原创]一个简单的makefile编写及shell环境下直接make生成可供gdb调试的二进制文件。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 11 Oct 2007 09:06:02 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	#file a b c makefile<br/>CGI_DIR =bin<br/><br/><br/>all:myfile<br/><br/>myfile:filea.o fileb.o filec.o<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gcc filea.o fileb.o filec.o -o myfile<br/>filea.o:filea.c head.h<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gcc -c filea.c<br/>fileb.o:fileb.c head.h<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gcc -c fileb.c<br/>filec.o:filec.c head.h<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gcc -c filec.c<br/><br/>install:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@if [ ! -d $(CGI_DIR) ]; then &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p $(CGI_DIR); &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp myfile /usr/home/xiangdong2/c++/make/$(CGI_DIR)<br/><br/><br/><br/><br/>clean:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -f *.o;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -rf myfile<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -rf bin<br/><br/>（注意:这儿的要执行的命令要用tab键隔开，否则出现：operation erro）<br/><br/><br/><br/>———————————shell环境下直接make生成可供gdb调试的二进制文件。—————————————<br/>root@192.168.137.128:~/dev_codes_all/arts_debug_book/arts_debug/chapt1# make ins CFLAGS=&quot;-Wall -o2 -g&quot;<br/>cc -Wall -o2 -g&nbsp;&nbsp;&nbsp;&nbsp;ins.c&nbsp;&nbsp; -o ins<br/>root@192.168.137.128:~/dev_codes_all/arts_debug_book/arts_debug/chapt1# gdb ins<br/>GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)<br/>Copyright (C) 2010 Free Software Foundation, Inc.<br/>License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;<br/>This is free software: you are free to change and redistribute it.<br/>There is NO WARRANTY, to the extent permitted by law.&nbsp;&nbsp;Type &quot;show copying&quot;<br/>and &quot;show warranty&quot; for details.<br/>This GDB was configured as &quot;i686-redhat-linux-gnu&quot;.<br/>For bug reporting instructions, please see:<br/>&lt;http://www.gnu.org/software/gdb/bugs/&gt;...<br/>Reading symbols from /root/dev_codes_all/arts_debug_book/arts_debug/chapt1/ins...done.<br/>(gdb) l<br/>53&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void print_results()<br/>54&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int i;<br/>56&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; num_inputs; i++)<br/>57&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;%d&#92;n&quot;, y[i]);<br/>58&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>59&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int main(int argc,char **argv)<br/>61&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>62&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get_args(argc,argv);<br/>(gdb) 
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [原创]一个简单的makefile编写及shell环境下直接make生成可供gdb调试的二进制文件。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>