From 19c2560331f712ea7e2666f9d18a33c985e8aa96 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 2 Apr 2024 12:25:37 -0400 Subject: [PATCH] Makefile: organize variables and add debugging Signed-off-by: Vincent Batts --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2698019..66aafb8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ +CFLAGS ?= -Wall -g $(shell pkg-config --cflags gtk4) +LDFLAGS ?= $(shell pkg-config --libs gtk4) CLEANFILES := main: main.c - gcc $(shell pkg-config --cflags gtk4) -o $@ $< $(shell pkg-config --libs gtk4) + gcc $(CFLAGS) -o $@ $< $(LDFLAGS) CLEANFILES += main