advent2025

Advent of Code 2025 Solutions
git clone git://bsandro.tech/advent2025
Log | Files | Refs | LICENSE

commit 7500a118cf591f8ba1bd9e2352ca06c96b13e7b1
parent eea5ba992ac288b358d5bfb4e78780e24fdfe134
Author: bsandro <email@bsandro.tech>
Date:   Sun,  7 Dec 2025 18:40:59 +0200

Fixed makefile for diff. platforms I got; using c99 instead of gnu99 now

Diffstat:
MMakefile | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,13 +1,21 @@ .SUFFIXES: MAKEFLAGS+=-rR -CFLAGS=-O3 -std=gnu99 -Werror -Wall -Wextra -ffast-math -I. -ifeq ($(shell uname -m),riscv64) +CFLAGS=-O3 -std=c99 -Werror -Wall -Wextra -ffast-math -flto -I. +UNAME:=$(shell uname -m) +ifeq ($(UNAME),riscv64) CFLAGS+=-mtune=sifive-u74 else CFLAGS+=-mtune=native -march=native endif LDFLAGS=-lc -lm + +ifneq ($(shell which clang),) CC=clang +else ifneq ($(shell which gcc-mp-14),) +CC=gcc-mp-14 +else +CC=cc +endif .PHONY: clean