diff --git a/Makefile b/Makefile index 0659f3c..f2f6429 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,5 @@ -NAME := aoc -FMT := c - -CC := cc -CC_OPTIONS := -g -Wall -Wextra -Werror -DBG := gdb - -SRCD := src BIND := out - -SRCS := $(wildcard $(SRCD)/*.$(FMT)) -BIN := $(BIND)/$(NAME) +BIN := $(BIND)/aoc all: $(BIND) $(BIN) @@ -17,13 +7,13 @@ run: all $(BIN) debug: all - $(DBG) $(BIN) + gdb $(BIN) $(BIND): mkdir $@ -$(BIN): $(SRCS) - $(CC) $(CC_OPTIONS) -o $@ $^ +$(BIN): $(wildcard src/*.c) + cc -g -Wall -Wextra -Werror -o $@ $^ clean: rm -f $(wildcard $(BIND)/*)