mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2026-03-02 03:49:21 +00:00
Lesson 23, section 6
This commit is contained in:
@@ -7,7 +7,7 @@ OBJ = ${C_SOURCES:.c=.o cpu/interrupt.o}
|
||||
CC = /usr/local/i386elfgcc/bin/i386-elf-gcc
|
||||
GDB = /usr/local/i386elfgcc/bin/i386-elf-gdb
|
||||
# -g: Use debugging symbols in gcc
|
||||
CFLAGS = -g -ffreestanding -Wall -Wextra -fno-exceptions
|
||||
CFLAGS = -g -ffreestanding -Wall -Wextra -fno-exceptions -m32
|
||||
|
||||
# First rule is run by default
|
||||
os-image.bin: boot/bootsect.bin kernel.bin
|
||||
@@ -33,7 +33,7 @@ debug: os-image.bin kernel.elf
|
||||
# Generic rules for wildcards
|
||||
# To make an object, always compile from its .c
|
||||
%.o: %.c ${HEADERS}
|
||||
${CC} ${CFLAGS} -ffreestanding -c $< -o $@
|
||||
${CC} ${CFLAGS} -c $< -o $@
|
||||
|
||||
%.o: %.asm
|
||||
nasm $< -f elf -o $@
|
||||
|
||||
Reference in New Issue
Block a user