Initial commit.

This commit is contained in:
2024-10-20 02:10:44 +05:00
commit a861db4326
6 changed files with 176 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
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)
all: $(SRCS:.c=.o)
$(CC) $(LDFLAGS) -o bin $^
clean:
$(RM) $(SRCS:.c=.o) bin