From fc2f1bfe718f59d7d1f65c999714e8389a8554a5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 3 Oct 2023 22:03:29 -0400 Subject: [PATCH] Makefile: build against libcss The first step towards adding libcss support is to build against libcss. For now that means getting its "cflags" and "libs" from pkg-config and putting them into CFLAGS and LDFLAGS. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6511191..135ff74 100644 --- a/Makefile +++ b/Makefile @@ -39,15 +39,15 @@ else CFLAGS := $(CFLAGS) -Dinline="__inline__" endif -# libdom +# libcss, libdom, libwapcaplet ifneq ($(PKGCONFIG),) CFLAGS := $(CFLAGS) \ - $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags libdom libwapcaplet) + $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags libcss libdom libwapcaplet) LDFLAGS := $(LDFLAGS) -lm \ - $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs libdom libwapcaplet) + $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs libcss libdom libwapcaplet) else CFLAGS := $(CFLAGS) -I$(PREFIX)/include - LDFLAGS := $(CFLAGS) -ldom -lwapcaplet -lexpat -lm + LDFLAGS := $(CFLAGS) -lcss -ldom -lwapcaplet -lexpat -lm endif include $(NSBUILD)/Makefile.top -- 2.44.2