Hi guys, Anyone can explain it?
Thanks a lot. Carl 2009/7/17 xiangfeng shen <[email protected]> > Hi, > > I have encountered a rule: > default %: > @echo "blah blah" > What's the meaning of the rule? > Does it have any difference with next rule? > default: > @echo "blah blah" > Best Regards. > carl > > > 2009/7/16 <[email protected]> > > Send Help-make mailing list submissions to >> [email protected] >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.gnu.org/mailman/listinfo/help-make >> or, via email, send a message with subject or body 'help' to >> [email protected] >> >> You can reach the person managing the list at >> [email protected] >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Help-make digest..." >> >> >> Today's Topics: >> >> 1. how to include .asm files (kwistjhp) >> 2. Re: how to include .asm files (CHEN Cheng) >> 3. Re: how to include .asm files (Paul Smith) >> 4. how to include .asm files (kwistjhp) >> 5. RE: how to include .asm files ([email protected]) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Wed, 15 Jul 2009 03:48:42 -0700 (PDT) >> From: kwistjhp <[email protected]> >> Subject: how to include .asm files >> To: [email protected] >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=us-ascii >> >> >> Hi all, >> >> I have a problem with making the following file, in which idt.asm and >> service.asm are included in kernel_init.asm and should not be assembled by >> themselves. I want them to be dependencies to kernel_init.o >> >> -------- >> kernel.bin : kernel_init.o >> ld -T link.ld -o kernel.bin *.o -L H:\Jonix -lckjonix -nostdlib -M >> -s >> >> kernel.bin : kernel_init.o >> >> kernel_init.o : kernel_init.asm idt.asm service.asm >> fasm kernel_init.asm kernel_init.o >> -------- >> >> However, make complains 'no rule to make target idt.asm, needed by >> kernel_init.o. How can I tell make that these files are not to be built by >> make, but just that kernel_init.o is to be rebuilt whenever one of the >> dependencies are updated? When I add: >> >> --------- >> idt.asm : ; >> service.asm : ; >> --------- >> >> Then kernel_init.o is always updated on every make call. >> >> Any help? >> >> thanks, >> Johan >> -- >> View this message in context: >> http://www.nabble.com/how-to-include-.asm-files-tp24495048p24495048.html >> Sent from the Gnu - Make - Help mailing list archive at Nabble.com. >> >> >> >> >> >> ------------------------------ >> >> Message: 2 >> Date: Wed, 15 Jul 2009 20:06:05 +0800 >> From: CHEN Cheng <[email protected]> >> Subject: Re: how to include .asm files >> To: kwistjhp <[email protected]> >> Cc: [email protected] >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=us-ascii >> >> On Wed, Jul 15, 2009 at 03:48:42AM -0700, kwistjhp wrote: >> > >> > Hi all, >> > >> > I have a problem with making the following file, in which idt.asm and >> > service.asm are included in kernel_init.asm and should not be assembled >> by >> > themselves. I want them to be dependencies to kernel_init.o >> > >> > -------- >> > kernel.bin : kernel_init.o >> > ld -T link.ld -o kernel.bin *.o -L H:\Jonix -lckjonix -nostdlib -M >> -s >> > >> > kernel.bin : kernel_init.o >> > >> > kernel_init.o : kernel_init.asm idt.asm service.asm >> > fasm kernel_init.asm kernel_init.o >> > -------- >> > >> > However, make complains 'no rule to make target idt.asm, needed by >> > kernel_init.o. How can I tell make that these files are not to be built >> by >> > make, but just that kernel_init.o is to be rebuilt whenever one of the >> > dependencies are updated? When I add: >> >> Are the included asm files located in the same directory as Makefile? >> If not, >> it might work if you specify full/relative path of them, e.g.: >> >> kernel.bin: kernel_init.o >> ld -T link.ld -o $@ $^ -L H:\Jonix -lckjonix -nostdlib -M -s >> >> kernel_init.o : kernel_init.asm >> fasm $< $@ >> >> kernel_init.o : included\idt.asm included\service.asm >> >> >> >> Hope this helps, >> >> Cheng >> >> >> >> >> >> ------------------------------ >> >> Message: 3 >> Date: Wed, 15 Jul 2009 08:36:01 -0400 >> From: Paul Smith <[email protected]> >> Subject: Re: how to include .asm files >> To: kwistjhp <[email protected]> >> Cc: [email protected] >> Message-ID: <[email protected]> >> Content-Type: text/plain >> >> On Wed, 2009-07-15 at 03:48 -0700, kwistjhp wrote: >> > I have a problem with making the following file, in which idt.asm and >> > service.asm are included in kernel_init.asm and should not be assembled >> by >> > themselves. I want them to be dependencies to kernel_init.o >> > >> > -------- >> > kernel.bin : kernel_init.o >> > ld -T link.ld -o kernel.bin *.o -L H:\Jonix -lckjonix -nostdlib -M >> -s >> > >> > kernel.bin : kernel_init.o >> > >> > kernel_init.o : kernel_init.asm idt.asm service.asm >> > fasm kernel_init.asm kernel_init.o >> > -------- >> > >> > However, make complains 'no rule to make target idt.asm, needed by >> > kernel_init.o. How can I tell make that these files are not to be built >> by >> > make, but just that kernel_init.o is to be rebuilt whenever one of the >> > dependencies are updated? When I add: >> >> If the file already exists and make has no rule to build it, then make >> will not try to build it. >> >> If you're getting an error "no rule to make target", then the file >> doesn't already exist. >> >> In your case, idt.asm is not there or at least make can't find it. >> That's why you're getting this error. >> >> -- >> >> ------------------------------------------------------------------------------- >> Paul D. Smith <[email protected]> Find some GNU make tips at: >> http://www.gnu.org http://make.mad-scientist.us >> "Please remain calm...I may be mad, but I am a professional." --Mad >> Scientist >> >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Wed, 15 Jul 2009 03:06:04 -0700 (PDT) >> From: kwistjhp <[email protected]> >> Subject: how to include .asm files >> To: [email protected] >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=us-ascii >> >> >> Hi all, >> >> I have a problem with making the following file, in which idt.asm and >> service.asm are included in kernel_init.asm and should not be assembled by >> themselves. I want them to be dependencies to kernel_init.o >> >> -------- >> kernel.bin : kernel_init.o >> ld -T link.ld -o kernel.bin *.o -L H:\Jonix -lckjonix -nostdlib -M >> -s >> >> kernel.bin : kernel_init.o >> >> kernel_init.o : kernel_init.asm idt.asm service.asm >> fasm kernel_init.asm kernel_init.o >> -------- >> >> However, make complains 'no rule to make target idt.asm, needed by >> kernel_init.o. How can I tell make that these files are not to be built by >> make, but just that kernel_init.o is to be rebuilt whenever one of the >> dependencies are updated? When I add: >> >> --------- >> idt.asm : ; >> service.asm : ; >> --------- >> >> Then kernel_init.o is always updated on every make call. >> >> Any help? >> >> thanks, >> Johan >> -- >> View this message in context: >> http://www.nabble.com/how-to-include-.asm-files-tp24495048p24495048.html >> Sent from the Gnu - Make - Help mailing list archive at Nabble.com. >> >> >> >> >> >> ------------------------------ >> >> Message: 5 >> Date: Wed, 15 Jul 2009 14:50:36 +0200 >> From: <[email protected]> >> Subject: RE: how to include .asm files >> To: <[email protected]> >> Message-ID: >> <126b41b5cad96a4f9d42c9471d8d02470d2ed...@cpexbe-eml15.kpnsp.local >> > >> Content-Type: text/plain; charset="iso-8859-1" >> >> Paul Smith [[email protected]] wrote: >> >> >> However, make complains 'no rule to make target idt.asm, needed by >> >> kernel_init.o. How can I tell make that these files are not to be built >> by >> >> make, but just that kernel_init.o is to be rebuilt whenever one of the >> >> dependencies are updated? When I add: >> >> > In your case, idt.asm is not there or at least make can't find it. >> >> Thank you Paul (and Cheng) for triggering the idea that there might be a >> typo >> in the name of the file... which actually was... I had the idea that it >> might have something to do with the .asm prefix, but it turned out to be >> a much more trivial error. >> >> thanks for your efforts, >> >> Johan >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://lists.gnu.org/pipermail/help-make/attachments/20090715/a4a6682b/attachment.html >> >> ------------------------------ >> >> _______________________________________________ >> Help-make mailing list >> [email protected] >> http://lists.gnu.org/mailman/listinfo/help-make >> >> >> End of Help-make Digest, Vol 80, Issue 12 >> ***************************************** >> > >
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
