由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Makefile help!
相关主题
Re: Makefile help!( -g option)Re: SOS!!! (about FLTK)
any debugging tool?英雄,救命啊!!!
Question about DDD DebuggerHelp: failed to compile cxterm with cc
cxterm compile[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
Questions about MakefileRe: [转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
怎样写 makefilewrite makefile
help on cxterm[转载] emacs下编译程序,怎么指定路径?
what is wrong with makefile?[转载] 请教三个关于emacs和perl的问题
相关话题的讨论汇总
话题: makefile话题: cc话题: run
进入Unix版参与讨论
1 (共1页)
l***t
发帖数: 114
1
there are 3 files, how can I use the debug option -g to
debug run?
run:a1.o a2.o a3.o
cc -o run a1.o a2.o a3.o
a1.o:a1.c
cc -c a1.c
a2.o:a2.c
cc -c a2.c
a3.o:a3.c
cc -c a3.c
Thanks.
m*******m
发帖数: 182
2

Just put '-g' in the 'cc' line like this:
a1.o: a1.c
cc -g -c $?

【在 l***t 的大作中提到】
: there are 3 files, how can I use the debug option -g to
: debug run?
: run:a1.o a2.o a3.o
: cc -o run a1.o a2.o a3.o
: a1.o:a1.c
: cc -c a1.c
: a2.o:a2.c
: cc -c a2.c
: a3.o:a3.c
: cc -c a3.c

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 请教三个关于emacs和perl的问题Questions about Makefile
What's wrong with "CXTERM"CXTERM INSTALL : HELP !怎样写 makefile
Help about installing Cxterm5.0!!!!help on cxterm
where is gcc?what is wrong with makefile?
Re: Makefile help!( -g option)Re: SOS!!! (about FLTK)
any debugging tool?英雄,救命啊!!!
Question about DDD DebuggerHelp: failed to compile cxterm with cc
cxterm compile[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
相关话题的讨论汇总
话题: makefile话题: cc话题: run