Anonymous user
Limine Bare Bones: Difference between revisions
Jump to navigation
Jump to search
no edit summary
[unchecked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
Line 268:
# We are using the standard "cc" here, it may work by using
# the host system's toolchain, but this is not guaranteed.
override
$(eval $(call DEFAULT_VAR,
# Same thing for "ld" (the linker).
override
$(eval $(call DEFAULT_VAR,
# User controllable C flags.
override
$(eval $(call DEFAULT_VAR,
# User controllable C preprocessor flags. We set none by default.
override
$(eval $(call DEFAULT_VAR,
# User controllable nasm flags.
override
$(eval $(call DEFAULT_VAR,
# User controllable linker flags. We set none by default.
override
$(eval $(call DEFAULT_VAR,
# Internal C flags that should not be changed by the user.
override
-Wall \
-Wextra \
Line 310:
# Internal C preprocessor flags that should not be changed by the user.
override
-I src \
$(
-MMD \
-MP
# Internal linker flags that should not be changed by the user.
override
-m elf_x86_64 \
-nostdlib \
Line 328:
# Internal nasm flags that should not be changed by the user.
override
-Wall \
-f elf64
Line 347:
bin/$(KERNEL): GNUmakefile linker.ld $(OBJ)
mkdir -p "$$(dirname $@)"
$(
# Include header dependencies.
Line 355:
obj/%.c.o: src/%.c GNUmakefile
mkdir -p "$$(dirname $@)"
$(
# Compilation rules for *.S files.
obj/%.S.o: src/%.S GNUmakefile
mkdir -p "$$(dirname $@)"
$(
# Compilation rules for *.asm (nasm) files.
obj/%.asm.o: src/%.asm GNUmakefile
mkdir -p "$$(dirname $@)"
nasm $(
# Remove object files and the final executable.
|