Update
This commit is contained in:
parent
cfe422cdfd
commit
432f79d174
2 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
Copyright 2020, 2021 mintsuki and contributors.
|
Copyright (C) 2023 mintsuki and contributors.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
||||||
|
|
|
@ -49,9 +49,12 @@ override CFLAGS += \
|
||||||
-mno-sse \
|
-mno-sse \
|
||||||
-mno-sse2 \
|
-mno-sse2 \
|
||||||
-mno-red-zone \
|
-mno-red-zone \
|
||||||
-mcmodel=kernel \
|
-mcmodel=kernel
|
||||||
-MMD \
|
|
||||||
-I.
|
override CPPFLAGS := \
|
||||||
|
-I. \
|
||||||
|
$(CPPFLAGS) \
|
||||||
|
-MMD
|
||||||
|
|
||||||
# Internal linker flags that should not be changed by the user.
|
# Internal linker flags that should not be changed by the user.
|
||||||
override LDFLAGS += \
|
override LDFLAGS += \
|
||||||
|
@ -93,11 +96,11 @@ $(KERNEL): $(OBJ)
|
||||||
|
|
||||||
# Compilation rules for *.c files.
|
# Compilation rules for *.c files.
|
||||||
%.o: %.c limine.h
|
%.o: %.c limine.h
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
# Compilation rules for *.S files.
|
# Compilation rules for *.S files.
|
||||||
%.o: %.S limine.h
|
%.o: %.S limine.h
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
# Compilation rules for *.asm (nasm) files.
|
# Compilation rules for *.asm (nasm) files.
|
||||||
%.o: %.asm
|
%.o: %.asm
|
||||||
|
|
Loading…
Add table
Reference in a new issue