Makefile: organize variables and add debugging
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
8b6e4ee411
commit
19c2560331
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -1,8 +1,10 @@
|
||||||
|
|
||||||
|
CFLAGS ?= -Wall -g $(shell pkg-config --cflags gtk4)
|
||||||
|
LDFLAGS ?= $(shell pkg-config --libs gtk4)
|
||||||
CLEANFILES :=
|
CLEANFILES :=
|
||||||
|
|
||||||
main: main.c
|
main: main.c
|
||||||
gcc $(shell pkg-config --cflags gtk4) -o $@ $< $(shell pkg-config --libs gtk4)
|
gcc $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
CLEANFILES += main
|
CLEANFILES += main
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue