[BACK]Return to Makefile.gen CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / othersrc

File: [cvs.NetBSD.org] / othersrc / Makefile.gen (download)

Revision 1.2, Thu Nov 5 14:39:14 2009 UTC (12 years, 6 months ago) by stacktic
Branch: MAIN
Changes since 1.1: +7 -4 lines

Add support for FreeBSD and Linux

PREFIX=         /usr/local
BINDIR=         ${PREFIX}/bin
INCSDIR=        ${PREFIX}/include
LIBDIR=         ${PREFIX}/lib
MANDIR=         ${PREFIX}/man

MKCATPAGES=     no
MKHTML=         no
MKLINT=         no

LDFLAGS+=       -Wl,-rpath=${LIBDIR}

OSNAME!=        uname -s
.if ${OSNAME} == "NetBSD"
RUMPLIBDIR=	/usr/lib
.else
RUMPLIBDIR=	${LIBDIR}
LDFLAGS+=	-L${LIBDIR} -lnbcompat
LDADD+=         -L${LIBDIR} -lnbcompat
.if ${OSNAME} == "Linux"
LDFLAGS+=       -ldl
LDADD+=         -ldl
.endif
.endif