Hi Navi,
I am little confused by your suggestion,
how will I specify the file extension .o for each object file.
my present script is as follows :
C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\KERNEL.asm -o
C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o
C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\IntDefs.asm -o
C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o
gcc -c ckernel.c -o ../../OUTPUT\CKernel.o -I.\include
gcc -c common.c -o ../../OUTPUT\Common.o -I.\include
gcc -c IDT.c -o ../../OUTPUT\IDT.o -I.\include
gcc -c isr.c -o ../../OUTPUT\isr.o -I.\include
gcc -c stdio.c -o ../../OUTPUT\std.o -I.\include
gcc -c GUI.c -o ../../OUTPUT\GUI.o -I.\include
gcc -c Graphics.c -o ../../OUTPUT\Graphics.o -I.\include
gcc -c Timer.c -o ../../OUTPUT\Timer.o -I.\include
gcc -c keyboard.c -o ../../OUTPUT\keyboard.o -I.\include
gcc -c KrnlHeap.c -o ../../OUTPUT\KrnlHeap.o -I.\include
gcc -c Paging.c -o ../../OUTPUT\Paging.o -I.\include
pause
Can u suggest the enhancements now.
How about:
C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\KERNEL.asm -o
C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o
C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\IntDefs.asm -o
C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o
gcc -c ckernel.c -o ../../OUTPUT\CKernel.o -I.\include
gcc -c common.c -o ../../OUTPUT\Common.o -I.\include
gcc -c IDT.c -o ../../OUTPUT\IDT.o -I.\include
gcc -c isr.c -o ../../OUTPUT\isr.o -I.\include
gcc -c stdio.c -o ../../OUTPUT\std.o -I.\include
gcc -c GUI.c -o ../../OUTPUT\GUI.o -I.\include
gcc -c Graphics.c -o ../../OUTPUT\Graphics.o -I.\include
gcc -c Timer.c -o ../../OUTPUT\Timer.o -I.\include
gcc -c keyboard.c -o ../../OUTPUT\keyboard.o -I.\include
gcc -c KrnlHeap.c -o ../../OUTPUT\KrnlHeap.o -I.\include
gcc -c Paging.c -o ../../OUTPUT\Paging.o -I.\include
echo ../../OUTPUT\*.o > files
gcc -Wl,@files -o stoic.exe
pause
Cheers
Nick
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils