11 lines
339 B
Makefile
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 $<...
|