vulcanos/kernel/userspace/Makefile

11 lines
301 B
Makefile
Raw Normal View History

OBJS = shell.o fetch.o
2021-01-04 17:54:22 +01:00
VER := $(shell git rev-parse --short HEAD)
CC = i686-elf-gcc # cross-compiler
2021-01-04 17:54:22 +01:00
CFLAGS = -DDEFAULT_USER=root -DDEFAULT_HOSTNAME=vulcan -DVULCAN_VERSION=$(VER) -m32 -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
2021-01-04 17:54:22 +01:00
all:${OBJS}
%.o: %.c
$(CC) $(CFLAGS) $< -o $@