2024-04-02 13:30:04 +00:00
|
|
|
|
2024-04-02 16:25:37 +00:00
|
|
|
CFLAGS ?= -Wall -g $(shell pkg-config --cflags gtk4)
|
|
|
|
LDFLAGS ?= $(shell pkg-config --libs gtk4)
|
2024-04-02 14:44:38 +00:00
|
|
|
CLEANFILES :=
|
|
|
|
|
2024-04-02 16:53:31 +00:00
|
|
|
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
|
|
|
|
|
2024-04-02 13:30:04 +00:00
|
|
|
main: main.c
|
2024-04-02 16:25:37 +00:00
|
|
|
gcc $(CFLAGS) -o $@ $< $(LDFLAGS)
|
2024-04-02 13:30:04 +00:00
|
|
|
|
2024-04-02 14:44:38 +00:00
|
|
|
CLEANFILES += main
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(CLEANFILES)
|
|
|
|
|