diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-09 10:29:23 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-09 10:29:23 +0200 |
| commit | f6323421e22c3585c58b54658a11e1e4706cc8fa (patch) | |
| tree | f317b7129dc4350fd088b59a43c1b6e80cd5c39b /src/Makefile | |
| parent | 8fee35522dee033863f68c1d2b45f5fe988de9eb (diff) | |
Cleaning code and provide minimal libc
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index af32fdd..a7a8586 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,10 +7,12 @@ LD_SCRIPT := linker.ld # first in the kernel binary (thus it must be linked first, cf the $(EXEC) rule) BOOT_OBJ := $(addsuffix .o,$(basename $(shell find ./boot -name "*.[c|S]" ! -name "boot.S"))) UTILS_OBJ := $(addsuffix .o,$(basename $(shell find ./utils -name "*.[c|S]"))) +LIBC_OBJ := $(addsuffix .o,$(basename $(shell find ./libc -name "*.[c|S]"))) + all: $(EXEC) -$(EXEC): boot/boot.o $(BOOT_OBJ) $(UTILS_OBJ) bringelle.o +$(EXEC): boot/boot.o $(BOOT_OBJ) $(UTILS_OBJ) $(LIBC_OBJ) bringelle.o ld -n -T $(LD_SCRIPT) -nostdlib -o bringelle $^ %.o: %.S |
