Change Makefile a bit.

This commit is contained in:
bʰedoh₂ swé 2024-10-19 22:24:11 +05:00
parent 580a9fc34f
commit a5b243bf82

View File

@ -1,6 +1,6 @@
SRCS = boot.c SRCS = boot.c
LDFLAGS = -melf_i386 -nostdlib --oformat binary -T linker.ld LDFLAGS = -melf_i386 -nostdlib --oformat binary -T linker.ld
CFLAGS = -fno-pie -Wall -std=c2x -m16 -nostdlib -Os -nostartfiles CFLAGS = -ffreestanding -fno-builtin -fno-pie -Wall -std=c2x -m16 -nostdlib -Os -nostartfiles
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) $^ -c -o $@ $(CC) $(CFLAGS) $^ -c -o $@