fix: improve default handling

- no longer loads .env.example but explicitly sets default variables
This commit is contained in:
2026-05-14 17:33:31 +02:00
parent 17b0270411
commit 340772a874

View File

@@ -2,11 +2,14 @@ ifneq (,$(wildcard ./.env))
include .env
export
else
$(warning .env file not found, loading defaults)
include .env.example
export
$(warning .env file not found, defaults will be used)
endif
# Default configuration
FLAG_LEN ?= 32
FLAG_FORMAT ?= ctf{FLAG_GOES_HERE}
# Compilation variables
RISCV_CC ?= riscv64-unknown-elf-gcc
RISCV_ARCH_FLAGS ?= -march=rv32im -mabi=ilp32
HOST_CC ?= gcc