--- Makefile.orig 2010-11-03 18:28:50 UTC +++ Makefile @@ -1,8 +1,11 @@ # $Id: Makefile,v 1.13 2010/11/03 18:28:50 max Exp $ # $FreeBSD$ -BINDIR= /usr/local/bin -MANDIR= /usr/local/man/man +PREFIX?= /usr/local +LOCALBASE?= /usr/local + +BINDIR= ${PREFIX}/bin +MANDIR= ${PREFIX}/share/man/man PROG= obexapp MAN1= obexapp.1 @@ -13,11 +16,11 @@ DEBUG_FLAGS= -g DEBUG_FLAGS= -g -CFLAGS+= -I/usr/local/include \ - -I/usr/local/include/openobex +CFLAGS+= -idirafter ${LOCALBASE}/include \ + -I${LOCALBASE}/include/openobex DPADD= ${LIBBLUETOOTH} ${LIBSDP} ${LIBREADLINE} -LDADD= -L/usr/lib -L/usr/local/lib \ +LDADD= -L/usr/lib -L${LOCALBASE}/lib \ -lbluetooth -lsdp -lopenobex -lexpat -lreadline -liconv .include