请贴 Makefile 出来。或者 make clean all.
find ./ -name "*.o" -exec rm -fr {} /;
就不会nothing to do 了。
how did you know it's a C project? :D
|
基本上确定是TARGET没有依赖的问题。
还没搞清楚,如何解决。
default: build |
|
$(TARGET).gz: $(TARGET) |
|
gzip -f -9 < $< > $@.new |
|
mv $@.new $@ |
|
|
|
debug: |
|
objdump -D -S $(TARGET)-syms > $(TARGET).s |
|
|
|
dist: install |
|
|
|
build: $(TARGET).gz |
|
|
|
install: $(TARGET).gz |
|
ifeq (,$(strip $(PROJECT_DIR))) |
|
$(error " $(PROJECT_DIR) is not defined. Please configure it in ./Config.mk!") |
|
endif |
|
@if [ -d $(PROJECT_DIR) ] ; then \ |
|
cp $(TARGET)-bin $(PROJECT_DIR) ; \ |
|
echo "Installed successfully!" ; \ |
|
else \ |
|
echo "ERROR. $(PROJECT_DIR) is invalid, Please check it in ./Config.mk!" ; \ |
|
fi |
|
|
|
clean: |
|
$(MAKE) -C common clean |
|
$(MAKE) -C drivers clean |
|
$(MAKE) -C fs clean |
|
$(MAKE) -C acm clean |
|
$(MAKE) -C arch/$(TARGET_ARCH) clean |
|
$(MAKE) -C security clean |
|
rm -f include/asm/arch |
|
rm -f include/asm *.o $(TARGET)* *~ core |
|
rm -f include/asm-*/asm-offsets.h |
|
rm -f include/xen/acm_policy.h |
|
|
|
$(TARGET): |
|
$(MAKE) include/xen/compile.h |
|
$(MAKE) include/xen/acm_policy.h |
|
$(MAKE) include/xen/autoconf.h |
|
[ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm |
|
[ -e include/asm/arch ] || ln -sf arch-$(TARGET_SUBARCH) include/asm/arch |
|
$(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s |
|
$(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h |
| $(MAKE) -C arch/$(TARGET_ARCH) $(TARGET) |
你修改了哪个文件?
说了这么久,才贴出来。建议去看,提问的智慧。然后去把make的入门文档看下。
说了这么久,才贴出来。建议去看,提问的智慧。然后去把make的入门文档看下。
小朋友,你没有时间去看make文档就可以浪费别人的时间么?
如果连看文档的时间都没有,别吃这口饭了。
2011/12/7 xx <xx.k...@gmail.com>:
>
>
> 2011/12/7 Jeova Sanctus Unus <jeova.san...@gmail.com>
>>
>> 说了这么久,才贴出来。建议去看,提问的智慧。然后去把make的入门文档看下。
>
> 这位大侠,我有功夫去看make文档,还用在这里问吗?
--
Any complex technology which doesn’t come with documentation must be the best
available.
不是
但是他有权因为你对给到你忠言逆耳的建议不好好感激思考,反而以这样的态度回敬的人直接踢出我们SHLUG
再出现这样请教问题和回复邮件的态度我直接ban掉
--
Thomas
Shanghai Linux User Group
http://ghosTunix.org
Twitter: @ghosTM55
此人:xx.k...@gmail.com已ban。
注:期限三天。
��������϶���makfile��depends���Ǻܺá��㶮�ġ�
B.R-- jojo
���ALL Ŀ���� 2011-12-6������6:53�� xx д����
��λӢ�ۣ�д��һ��Makefile�ļ�����������һ�����⣺
����Ŀ��һ���ļ����и��£�����make����˵��û��ʲô�������ġ��������Ŀ����make clean����make���С�
����������
加这一行到你的makefile:
.PHONE: $(TARGET) clean
:D
加这两行更好:
.PHONE: clean
$(TARGET): clean
:D
1. 事情是这样的,如果比如是其他语言,python ruby erlang schema java 或者等等,都多少有点基本常识和基础的,而
有基本常识的人是不会这么傻傻地问这么低级的问题的。
只有像C , 有很高的概率,什么都还不懂的情况下就作为入门的语言使用,用的还不熟,也不愿意看文档,到处问低级问题,只能说明还是像我一样的低级
用户。
2. 我其他的都不会,只会写 fprintf 的人,所以就当他和我一样了。
this is a workaround. :) you need fix the root-cause.
there are two way you can fix the root-cause:
1. learn more about Make system. fix it by youself
2. paste all the source code somewhere. include all the makefiles under sub-folder
like:
$(MAKE) include/xen/compile.h
$(MAKE) include/xen/acm_policy.h
$(MAKE) include/xen/autoconf.h
$(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s
$(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h
$(MAKE) -C arch/$(TARGET_ARCH) $(TARGET)
then the sh linux user fix that for you. :D