hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5da61f2..c98ea0f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ LD ?= ld
YEAR ?= 2025
DAY ?=
-SRC_DIR := aoc-$(YEAR)
+SRC_DIR := $(YEAR)
BUILD_DIR := build/aoc-$(YEAR)
NASMFLAGS ?= -f elf64
@@ -13,7 +13,7 @@ LDFLAGS ?= -m elf_x86_64
DAYS := $(basename $(notdir $(wildcard $(SRC_DIR)/day*.asm)))
BINARIES := $(addprefix $(BUILD_DIR)/,$(DAYS))
-UTILS := $(wildcard $(SRC_DIR)/utils/*.asm)
+UTILS := $(wildcard utils/*.asm)
.PHONY: all clean list run
@@ -23,7 +23,7 @@ $(BUILD_DIR):
@mkdir -p $@
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.asm $(UTILS) | $(BUILD_DIR)
- @$(NASM) $(NASMFLAGS) -I$(SRC_DIR)/ $< -o $@
+ @$(NASM) $(NASMFLAGS) -I. $< -o $@
$(BUILD_DIR)/%: $(BUILD_DIR)/%.o
@$(LD) $(LDFLAGS) -o $@ $<