summaryrefslogtreecommitdiffstats
path: root/lib/libxo
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-10-06 07:28:54 +0000
committerngie <ngie@FreeBSD.org>2015-10-06 07:28:54 +0000
commitf61b60624c8d04156826dd91d4c4e605f76248dd (patch)
treecc0d728b2d51cf44471bd0b5081268507b2eb246 /lib/libxo
parent945e362d2bdc9f7cc475b22a4d5eca8bb5b0e707 (diff)
downloadFreeBSD-src-f61b60624c8d04156826dd91d4c4e605f76248dd.zip
FreeBSD-src-f61b60624c8d04156826dd91d4c4e605f76248dd.tar.gz
Use LIBXOSRC instead of LIBXO when defining the path to contrib/libxo
The latter is already defined in bsd.libnames.mk, so avoid the conflict in case someone copy-pastes make variables While here, switch path to the top of the source tree with SRCTOP
Diffstat (limited to 'lib/libxo')
-rw-r--r--lib/libxo/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libxo/Makefile b/lib/libxo/Makefile
index 8ca1292..05f5f27 100644
--- a/lib/libxo/Makefile
+++ b/lib/libxo/Makefile
@@ -1,8 +1,8 @@
# $FreeBSD$
-LIBXO= ${.CURDIR:H:H}/contrib/libxo
+LIBXOSRC= ${SRCTOP}/contrib/libxo
-.PATH: ${LIBXO}/libxo
+.PATH: ${LIBXOSRC}/libxo
LIB= xo
SHLIB_MAJOR=0
@@ -11,7 +11,7 @@ SHLIBDIR?= /lib
SRCS= libxo.c xo_encoder.c xo_syslog.c
-CFLAGS+=-I${LIBXO}/libxo
+CFLAGS+=-I${LIBXOSRC}/libxo
CFLAGS+=-DXO_ENCODERDIR=\"/usr/lib/libxo/encoder\"
INCS= xo.h xo_encoder.h
OpenPOWER on IntegriCloud