AdventOfCode/2024/Day3/Makefile
s-prechtl 8c2a59e6c3 feat: Day3_2
forgot to commit part one, so just leave out all the enabled part to
work
2024-12-03 16:00:55 +01:00

17 lines
343 B
Makefile

CC = gcc
CC_FLAGS = -Wall -Wextra -Werror -Wpedantic -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function
CC_LINK_FLAGS =
.PHONY: all run clean
all: run
run: build
./target/main.o
build: src/main.c
mkdir -p target
$(CC) -o target/main.o src/main.c $(CC_FLAGS) $(CC_LINK_FLAGS)
chmod u+x target/main.o
clean:
rm -r target/*