From 3bbfea740000b58e2aac0c02c548218959d3976c Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 17 Jun 2025 12:46:47 +0200 Subject: [PATCH] fix header file to be more platform-independent --- makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index ed3364c..7601ec8 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ -CC := x86_64-linux-gnu-gcc -CFLAGS := -Wall -Wextra -Wpedantic -O2 -std=gnu17 -LDFLAGS := +CC ?= cc +CFLAGS += -Wall -Wextra -Wpedantic -O2 -MD -MP -std=gnu99 +LDFLAGS += SRC = $(shell find src/ -name '*.c') OBJ := $(patsubst src/%,obj/%,$(SRC:.c=.o)) @@ -18,7 +18,7 @@ $(BIN): $(OBJ) # compile .o files (w/ .d files) obj/%.o: src/%.c @mkdir -p $(@D) - $(CC) -c -MD -MP $(CFLAGS) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< ifneq ($(shell which bear),) compile_commands.json: makefile