From 321db68f6f2a47361fb9f888ddda3dca1202393d Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 9 May 2023 03:15:30 +0200 Subject: Makefile: Use a variable for libunit's $prefix Signed-off-by: Alejandro Colomar --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e6e24d0..668be64 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,16 @@ srcdir := . builddir := tmp -LIBNXT_CFLAGS := -isystem/opt/local/unit/include -LIBNXT_LIBS := -L/opt/local/unit/lib -lunit +LIBUNIT_PREFIX := /opt/local/unit -CFLAGS := -Wall -Wextra -Werror -std=gnu2x -O3 $(LIBNXT_CFLAGS) + +LIBUNIT_CFLAGS := -isystem$(LIBUNIT_PREFIX)/include +LIBUNIT_LIBS := -L$(LIBUNIT_PREFIX)/lib -lunit + +CFLAGS := -Wall -Wextra -Werror -std=gnu2x -O3 $(LIBUNIT_CFLAGS) ASFLAGS := LDFLAGS := -LIBS := $(LIBNXT_LIBS) -lpthread -lc -lgcc +LIBS := $(LIBUNIT_LIBS) -lpthread -lc -lgcc AR := ar AS := as -- cgit v1.2.3