svn commit: r288913 - in head: lib/libxo usr.bin/xo

Garrett Cooper ngie at FreeBSD.org
Tue Oct 6 07:28:55 UTC 2015


Author: ngie
Date: Tue Oct  6 07:28:54 2015
New Revision: 288913
URL: https://svnweb.freebsd.org/changeset/base/288913

Log:
  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

Modified:
  head/lib/libxo/Makefile
  head/usr.bin/xo/Makefile

Modified: head/lib/libxo/Makefile
==============================================================================
--- head/lib/libxo/Makefile	Tue Oct  6 05:49:00 2015	(r288912)
+++ head/lib/libxo/Makefile	Tue Oct  6 07:28:54 2015	(r288913)
@@ -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

Modified: head/usr.bin/xo/Makefile
==============================================================================
--- head/usr.bin/xo/Makefile	Tue Oct  6 05:49:00 2015	(r288912)
+++ head/usr.bin/xo/Makefile	Tue Oct  6 07:28:54 2015	(r288913)
@@ -1,14 +1,14 @@
 # $FreeBSD$
 
-LIBXO=	${.CURDIR:H:H}/contrib/libxo
+LIBXOSRC=	${SRCTOP}/contrib/libxo
 
-.PATH:	${LIBXO}/xo
+.PATH:	${LIBXOSRC}/xo
 
 PROG=	xo
 MAN=	xo.1
 
 # XXX For xoversion.h
-CFLAGS+=-I${LIBXO}/libxo
+CFLAGS+=-I${LIBXOSRC}/libxo
 
 LIBADD=	xo util
 


More information about the svn-src-head mailing list