64 bit support
This commit is contained in:
10
makefile
10
makefile
@@ -1,8 +1,8 @@
|
||||
CC = i386-elf-gcc
|
||||
LD = i386-elf-ld
|
||||
CC = x86_64-elf-gcc
|
||||
LD = x86_64-elf-ld
|
||||
|
||||
CFLAGS = -m32 -ffreestanding -fno-builtin -Wall -Wextra -Werror -Wshadow -std=c23
|
||||
LDFLAGS = -m elf_i386
|
||||
CFLAGS = -m64 -ffreestanding -fno-builtin -Wall -Wextra -Werror -Wshadow -std=c23
|
||||
LDFLAGS =
|
||||
|
||||
all: .build/nub-os.iso
|
||||
|
||||
@@ -28,4 +28,4 @@ build-dir:
|
||||
$(CC) $(CFLAGS) -c -o .build/vga.o src/vga.c
|
||||
|
||||
.build/boot.o: build-dir src/boot.asm
|
||||
nasm -f elf32 -o .build/boot.o src/boot.asm
|
||||
nasm -f elf64 -o .build/boot.o src/boot.asm
|
||||
Reference in New Issue
Block a user