Update
This commit is contained in:
parent
cfe422cdfd
commit
432f79d174
|
@ -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.
|
||||
|
|
@ -49,9 +49,12 @@ override CFLAGS += \
|
|||
-mno-sse \
|
||||
-mno-sse2 \
|
||||
-mno-red-zone \
|
||||
-mcmodel=kernel \
|
||||
-MMD \
|
||||
-I.
|
||||
-mcmodel=kernel
|
||||
|
||||
override CPPFLAGS := \
|
||||
-I. \
|
||||
$(CPPFLAGS) \
|
||||
-MMD
|
||||
|
||||
# Internal linker flags that should not be changed by the user.
|
||||
override LDFLAGS += \
|
||||
|
@ -93,11 +96,11 @@ $(KERNEL): $(OBJ)
|
|||
|
||||
# Compilation rules for *.c files.
|
||||
%.o: %.c limine.h
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
# Compilation rules for *.S files.
|
||||
%.o: %.S limine.h
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
# Compilation rules for *.asm (nasm) files.
|
||||
%.o: %.asm
|
||||
|
|
Loading…
Reference in a new issue