bootsector_tictactoe/Makefile

16 lines
312 B
Makefile
Raw Permalink Normal View History

2024-12-29 08:08:56 +00:00
.SUFFIXES: .c .o
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
2024-12-29 08:08:56 +00:00
.c.o:
$(CC) $< -o $@ $(CFLAGS)
2024-10-19 21:10:44 +00:00
2024-10-20 11:36:21 +00:00
bin: $(SRCS:.c=.o)
2024-12-29 08:08:56 +00:00
$(CC) $(LDFLAGS) -o bin $(SRCS:.c=.o)
2024-10-19 21:10:44 +00:00
2024-10-20 11:36:21 +00:00
all: bin
2024-10-19 21:10:44 +00:00
clean:
2024-12-29 08:08:56 +00:00
rm -f $(SRCS:.c=.o) bin