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

11 lines
339 B
Makefile

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