bootsector_tictactoe/Makefile

15 lines
287 B
Makefile
Raw Normal View History

2024-10-19 21:10:44 +00:00
SRCS = boot.c
LDFLAGS = -flto -T linker.ld -nostdlib -Os
CFLAGS = -flto -ffreestanding -fno-builtin -fno-pie -Wall -std=c2x -m16 -nostdlib -Os -nostartfiles -r
%.o: %.c
$(CC) $^ -o $@ $(CFLAGS)
2024-10-20 11:36:21 +00:00
bin: $(SRCS:.c=.o)
2024-10-19 21:10:44 +00:00
$(CC) $(LDFLAGS) -o bin $^
2024-10-20 11:36:21 +00:00
all: bin
2024-10-19 21:10:44 +00:00
clean:
$(RM) $(SRCS:.c=.o) bin