From dbce9b2cf2a3b310f426a4bfda0af6c502413e74 Mon Sep 17 00:00:00 2001 From: anastasisg Date: Tue, 18 Feb 2025 23:18:55 +0200 Subject: Gtk support --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b146099..ea18ed1 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ +PKG_CONFIG ?= pkg-config TARGET=xlnch PREFIX?=/usr/local MANUALS=$(PREFIX)/share/man SRC=*.c CC=gcc -CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic +CFLAGS=-Wall $(shell $(PKG_CONFIG) --cflags gtk4) REL_FLAGS=-O3 DBG_FLAGS=-Wall -g3 -LIBS=-l X11 +LIBS=$(shell $(PKG_CONFIG) --libs gtk4) make: $(SRC) $(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS) -- cgit v1.2.3