summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoranastasisg <anastasis@learnworlds.com>2025-02-18 23:18:55 +0200
committeranastasisg <anastasis@learnworlds.com>2025-02-18 23:18:55 +0200
commitdbce9b2cf2a3b310f426a4bfda0af6c502413e74 (patch)
tree89eb27ee4bd9ad2066df2791a2f338abe52a488d /Makefile
parenteb921aa2931859f55b11f3cc42a7fadd147a58d9 (diff)
downloadxlnch-dbce9b2cf2a3b310f426a4bfda0af6c502413e74.tar.gz
xlnch-dbce9b2cf2a3b310f426a4bfda0af6c502413e74.tar.bz2
xlnch-dbce9b2cf2a3b310f426a4bfda0af6c502413e74.zip
Gtk supportgtk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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)