From e3296ca12bb4bee41f4bd934fbfef71e17a96cf9 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 3c162ca..f5c11c3 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.49.0