diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | Pull requests | README | LICENSE

commit 099b3614353dc95326e9637409dc08e5bf1878d7
parent 9fde8ade83bc1372adf5fbcf463fbea9d546452e
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun,  8 Sep 2024 16:54:28 +0200

feat(libxml): add libxml to Makefile

Diffstat:
MMakefile | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -9,19 +9,21 @@ MANDIR := $(DESTDIR)$(PREFIX)/share/man MAN1 = man1/diary.1 CC = gcc -CFLAGS = -Wall -UNAME = ${shell uname} +CFLAGS = -Wall $(shell xml2-config --cflags) +UNAME = $(shell uname) + +XML_LIBS = $(shell xml2-config --libs --dynamic) ifeq ($(UNAME),FreeBSD) - LIBS = -lncurses -lcurl -ldl -llttng-ust -pthread + LIBS = -lncurses -lcurl $(ML_LIBS) -ldl -llttng-ust -pthread endif ifeq ($(UNAME),Linux) - LIBS = -lncursesw -lcurl -ldl -llttng-ust -pthread + LIBS = -lncursesw -lcurl $(XML_LIBS) -ldl -llttng-ust -pthread endif ifeq ($(UNAME),Darwin) - LIBS = -lncurses -lcurl -ldl -llttng-ust -pthread -framework CoreFoundation + LIBS = -lncurses -lcurl $(XML_LIBS) -ldl -llttng-ust -pthread -framework CoreFoundation endif