Skip to content

Commit

Permalink
create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed Jun 28, 2022
1 parent 2e0a426 commit 010c5c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
default:
$P/i686-elf-as boot.s -o build/boot.o
$P/i686-elf-as arch/gdt.s -o build/gdt.o
$P/i686-elf-as arch/include/isr.s -o build/isr.o
$P/i686-elf-gcc -c arch/interrupts.c -o build/interrupts.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c graphics/windows.c -o build/windows.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c arch/include/ports.c -o build/ports.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c drivers/textmode.c -o build/textmode.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c drivers/clock.c -o build/clock.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c drivers/pckbrd.c -o build/pckbrd.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c graphics/assets.c -o build/assets.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -c kernel.c -o build/kernel.o -ffreestanding -O2 -Wall -Wextra -fno-exceptions
$P/i686-elf-gcc -T config/linker.ld -o isodir/boot/Pong-i386.bin -ffreestanding -O2 -nostdlib build/assets.o build/textmode.o build/pckbrd.o build/clock.o build/ports.o build/windows.o build/kernel.o build/isr.o build/interrupts.o build/boot.o build/gdt.o -lgcc

image:
cp config/grub.cfg isodir/boot/grub/grub.cfg
grub-mkrescue -o Pong-i386.iso isodir

0 comments on commit 010c5c9

Please sign in to comment.