...
This commit is contained in:
16
makefile
16
makefile
@@ -1,18 +1,18 @@
|
||||
CC = x86_64-elf-gcc
|
||||
LD = x86_64-elf-ld
|
||||
CC = i686-elf-gcc
|
||||
LD = i686-elf-ld
|
||||
AS = nasm
|
||||
|
||||
# Modify these settings here for defines and debug info
|
||||
# CFLAGS = -g -D DEBUG
|
||||
# LDFLAGS = -g
|
||||
# ASFLAGS = -g -F dwarf
|
||||
CFLAGS = -g -D DEBUG
|
||||
LDFLAGS = -g
|
||||
ASFLAGS = -g -F dwarf
|
||||
|
||||
# Do not modify
|
||||
CFLAGS += -m64 -ffreestanding -nostdinc -nostdlib -Wall -Wextra -Wshadow -std=c23
|
||||
CFLAGS += -m32 -ffreestanding -fno-stack-protector -nostdlib -nostdinc -Wall -Wextra -std=c23
|
||||
LDFLAGS +=
|
||||
ASFLAGS += -f elf64
|
||||
ASFLAGS += -f elf32
|
||||
|
||||
SRC_C := $(shell find src -name '*.c')
|
||||
SRC_C := $(shell find src -name '*.c')
|
||||
SRC_ASM := $(shell find src -name '*.asm')
|
||||
|
||||
OBJS := $(patsubst src/%.c, .build/%.o, $(SRC_C)) $(patsubst src/%.asm, .build/%.o, $(SRC_ASM))
|
||||
|
||||
Reference in New Issue
Block a user