bootsector_c/Makefile
2024-10-19 22:09:19 +05:00

13 lines
261 B
Makefile

SRCS = boot.c
LDFLAGS = -melf_i386 -nostdlib --oformat binary -T linker.ld
CFLAGS = -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