learning-GTK/Makefile
Vincent Batts 19c2560331
Makefile: organize variables and add debugging
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2024-04-02 12:25:37 -04:00

13 lines
212 B
Makefile

CFLAGS ?= -Wall -g $(shell pkg-config --cflags gtk4)
LDFLAGS ?= $(shell pkg-config --libs gtk4)
CLEANFILES :=
main: main.c
gcc $(CFLAGS) -o $@ $< $(LDFLAGS)
CLEANFILES += main
clean:
rm -rf $(CLEANFILES)