From ecb6e3e504d5c1b47b293372e2042ccb460f5a84 Mon Sep 17 00:00:00 2001 From: Mathieu Serandour Date: Tue, 7 Dec 2021 11:08:18 +0100 Subject: [PATCH] removed useless stuff --- kernel/Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 22f8a8f..0fc0f88 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -29,6 +29,7 @@ INTERNALCFLAGS := -mgeneral-regs-only \ CFILES := $(shell find ./ -type f -name '*.c') SFILES := $(shell find ./ -type f -name '*.s') OBJ := $(SFILES:.s=.s.o) $(CFILES:.c=.c.o) + LDSCRIPT := linker.ld #charmap.bmp.o .PHONY: all clean @@ -36,18 +37,12 @@ LDSCRIPT := linker.ld all: $(KERNEL) + + $(KERNEL): $(OBJ) $(LDSCRIPT) $(CC) $(INTERNALLDFLAGS) $(OBJ) -o $@ -#%.bmp.o: ../resources/bmp/%.bmp -# $(LD) -r -b binary -o $@ $< -#%.txt.o: ../resources/ascii/%.txt -# $(LD) -r -b binary -o $@ $< - - -kernel/memory/paging.o: INTERNALCFLAGS += -Wno-int-conversion - %.c.o: %.c $(CC) $(CFLAGS) $(INTERNALCFLAGS) -c $< -o $@