From 52d87dea1b79f4c989d99040d1e6017b47256a31 Mon Sep 17 00:00:00 2001 From: Dario48 Date: Tue, 9 Dec 2025 14:52:52 +0100 Subject: [PATCH] this should be better --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3aa6b6b..83be941 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -CC=/bin/clang +CC=$(shell which clang) +CFLAGS:=$(CFLAGS) BINDIR=bin main=$(BINDIR)/main @@ -7,7 +8,7 @@ all: setup $(main) libs setup: mkdir -p $(BINDIR) - git submodule update --remote + git submodule update --remote --init $(main): src/main.c src/linked-list/linked_list.c $(CC) $(CXXFLAGS) $(CFLAGS) src/main.c -o $(main)