diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-05 14:46:31 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-05 14:46:31 +0200 |
| commit | ba7e57138c9e41cf944afb91c146fea23713c1d1 (patch) | |
| tree | 3a57bd313ee7a7fd8535286e3364ef47bb7aa705 /src/Makefile | |
| parent | b54b87ad2d41e60e9be1e299140dbf59e76c8fc6 (diff) | |
Reload GDT
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 0dee4ff..f5f9c83 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ EXEC := bringelle -CC := gcc -c -m32 -fno-pie -fno-builtin +CC := gcc -c -m32 -fno-pie -fno-builtin -fno-stack-protector UTILS_SRC := $(wildcard utils/*.c) @@ -16,14 +16,19 @@ bringelle.o: bringelle.c $(CC) $^ utils.o: $(UTILS_SRC) - $(CC) $^ -o $@ + for src in $^ ;\ + do \ + obj=$$(basename $${src} ".c")".o" ;\ + $(CC) $${src} -o utils/$${obj} ;\ + done + ld -melf_i386 -relocatable utils/*.o -o utils.o boot.o: ./boot/boot.S as --32 -o $@ $^ -mx86-used-note=no clean: + find ./ -name "*.o" -delete - rm $(EXEC) - - rm ./*.o .PHONY: clean |
