diff options
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 28081af..af32fdd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ EXEC := bringelle -CC := gcc -c -m32 -fno-pie -fno-builtin -fno-stack-protector +CC := gcc -c -m32 -fno-pie -fno-builtin -fno-stack-protector -I ./ LD_SCRIPT := linker.ld # Note that BOOT_OBJ do not match boot.S @@ -10,15 +10,14 @@ UTILS_OBJ := $(addsuffix .o,$(basename $(shell find ./utils -name "*.[c|S]"))) all: $(EXEC) -$(EXEC): boot/boot.o $(UTILS_OBJ) bringelle.o +$(EXEC): boot/boot.o $(BOOT_OBJ) $(UTILS_OBJ) bringelle.o ld -n -T $(LD_SCRIPT) -nostdlib -o bringelle $^ %.o: %.S - as --32 -o $@ $^ -mx86-used-note=no + as --32 -o $@ $^ %.o: %.c $(CC) -o $@ $< - #objcopy --remove-section .note.gnu.property $@ clean: rm -f $(EXEC) |
