Makefile: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
m (→‎What is a Makefile?: Spelling corrections)
m (→‎Basic Example: Removed an incorrect ld flag)
Line 44: Line 44:
gcc -c main.c -o main.o -Wall
gcc -c main.c -o main.o -Wall
gcc -c ports.c -o ports.o -Wall
gcc -c ports.c -o ports.o -Wall
ld -o kernel.o main.o ports.o -i -e _main -Ttext 0x7E00
ld -o kernel.o main.o ports.o -e _main -Ttext 0x7E00
objcopy -R .note -R .comment -S -O binary kernel.o kernel.bin
objcopy -R .note -R .comment -S -O binary kernel.o kernel.bin
</pre>
</pre>