strange makefile
Posted: Tue Nov 08, 2005 4:17 pm
hello everybody, ... again
i am learning kernel development from bran's tuts and i created makefile to compile all the stuff and produce a flat binary image of the kernel.
here is the code of that makefile:-
everything goes fine till it compiles the file isr.c. it even compiles the next files (irq.c and so on...) and gives a object file. the script output for these files is, quite strange for me , as follows :-
make: Circular irq.c <- irq.c dependency dropped.
Circular keyboard.c <- keyboard.c dependency dropped.
ld -T link.ld entry_kernel.o main.o print.o gdt.o idt.o isr.o irq.o
although i get the results but cant interpret what does these lines mean. is there anything to worry about in the code.
please let me know if you want code of other files.
thanks in advance for any help.
cheers
[edit by candy] please use code tags in your replies since they make the output more readible [/edit]
i am learning kernel development from bran's tuts and i created makefile to compile all the stuff and produce a flat binary image of the kernel.
here is the code of that makefile:-
Code: Select all
kernel : entry_kernel.o main.o print.o gdt.o idt.o isr.o irq.o keyboard.o
ld -T link.ld entry_kernel.o main.o print.o gdt.o idt.o isr.o irq.o keyboard.o
entry_kernel.o : entry_kernel.asm
nasm -f aout entry_kernel.asm
main.o : main.c include/system.h
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c main.c
print.o : print.c include/system.h
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c print.c
gdt.o : gdt.c include/system.h
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c gdt.c
idt.o : idt.c
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c idt.c
isr.o : isr.c
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c isr.c
irq.c : irq.c
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c irq.c
keyboard.c : keyboard.c
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c keyboard.c
make: Circular irq.c <- irq.c dependency dropped.
Circular keyboard.c <- keyboard.c dependency dropped.
ld -T link.ld entry_kernel.o main.o print.o gdt.o idt.o isr.o irq.o
although i get the results but cant interpret what does these lines mean. is there anything to worry about in the code.
please let me know if you want code of other files.
thanks in advance for any help.
cheers
[edit by candy] please use code tags in your replies since they make the output more readible [/edit]