We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File src/kernel/Makefile.
src/kernel/Makefile
build_scripts
build_tools
$@
How can be fixed:
TARGET_ASMFLAGS += -f elf TARGET_CFLAGS += -ffreestanding -nostdlib -I. TARGET_LIBS += -lgcc TARGET_LINKFLAGS += -T linker.ld -nostdlib HEADERS_C = $(wildcard *.h) \ $(wildcard */*.h) \ $(wildcard */*/*.h) \ $(wildcard */*/*/*.h) SOURCES_C = $(wildcard *.c) \ $(wildcard */*.c) \ $(wildcard */*/*.c) \ $(wildcard */*/*/*.c) \ OBJECTS_C = $(patsubst %.c, $(BUILD_DIR)/kernel/c/%.obj, $(SOURCES_C)) HEADERS_ASM = $(wildcard *.inc) \ $(wildcard */*.inc) \ $(wildcard */*/*.inc) \ $(wildcard */*/*/*.inc) \ SOURCES_ASM = $(wildcard *.asm) \ $(wildcard */*.asm) \ $(wildcard */*/*.asm) \ $(wildcard */*/*/*.asm) OBJECTS_ASM = $(patsubst %.asm, $(BUILD_DIR)/kernel/asm/%.obj, $(SOURCES_ASM)) GENERATED_FILES = arch/i686/isrs_gen.c arch/i686/isrs_gen.inc .PHONY: all kernel clean always all: kernel kernel: generate $(BUILD_DIR)/kernel.bin $(BUILD_DIR)/kernel.bin: $(OBJECTS_ASM) $(OBJECTS_C) @$(TARGET_LD) $(TARGET_LINKFLAGS) -Wl,-Map=$(BUILD_DIR)/kernel.map -o $@ $^ $(TARGET_LIBS) @echo "--> Created: kernel.bin" $(BUILD_DIR)/kernel/c/%.obj: %.c $(HEADERS_C) @mkdir -p $(@D) @$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $< @echo "--> Compiled: " $< $(BUILD_DIR)/kernel/asm/%.obj: %.asm $(HEADERS_ASM) @mkdir -p $(@D) @$(TARGET_ASM) $(TARGET_ASMFLAGS) -o $@ $< @echo "--> Compiled: " $< generate: @$(SOURCE_DIR)/build_scripts/generate_isrs.sh $(GENERATED_FILES) clean: rm -f $(BUILD_DIR)/kernel.bin
The text was updated successfully, but these errors were encountered:
No branches or pull requests
File
src/kernel/Makefile
.build_scripts
instead ofbuild_tools
.$@
doesn't pass target file names, so the script only tells about incorrect input arguments.How can be fixed:
The text was updated successfully, but these errors were encountered: