vulcanos/kernel/libc/Makefile
2021-02-04 15:27:55 +01:00

12 lines
309 B
Makefile

OBJS = stdio.o string.o panic.o time.o
VER := $(shell git rev-parse --short HEAD)
CC = i686-elf-gcc # cross-compiler
CFLAGS = -m32 -DVULCAN_VERSION=$(VER) -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
all:${OBJS}
%.o: %.c
@$(CC) $(CFLAGS) $< -o $@
@echo [CC] Compiling $<...