SRCS = boot.c LDFLAGS = -melf_i386 -nostdlib --oformat binary -T linker.ld CFLAGS = -ffreestanding -fno-builtin -fno-pie -Wall -std=c2x -m16 -nostdlib -Os -nostartfiles %.o: %.c $(CC) $(CFLAGS) $^ -c -o $@ all: $(SRCS:.c=.o) $(LD) $(LDFLAGS) -o bin $^ clean: $(RM) $(SRCS:.c=.o) bin