learning-GTK/Makefile
Vincent Batts ddfb728687
*: add source from drawing example and using gtk builder
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2024-04-02 12:53:31 -04:00

25 lines
411 B
Makefile

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