a cow based x86_64 operating system, using limine and stivale2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
322 B

.PHONY: all
CC := x86_64-elf-gcc
CFLAGS := -O0 -fno-inline -mno-red-zone -mgeneral-regs-only \
CFILES :=$(shell find -name "*.c")
EFILES := $(CFILES:.c=.elf)
all: $(EFILES)
cp *.elf ../disk_root/bin/
%.elf: %.c
$(CC) $(CFLAGS) -c $< -o $@.o
$(LD) -static $@.o -o $@
rm -rf *.s *.elf