[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.3, Fri Nov 6 11:47:40 2009 UTC (5 years, 1 month ago) by stacktic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +11 -3 lines

include nbcompat.h where needed
rename wrapped functions

OSNAME!=        uname -s

.if ${OSNAME} == "NetBSD"
PREFIX=         /usr/local
.else
PREFIX=		/usr/pkg
.endif
BINDIR=         ${PREFIX}/bin
INCSDIR=        ${PREFIX}/include
LIBDIR=         ${PREFIX}/lib
MANDIR=         ${PREFIX}/man

MKCATPAGES=     no
MKHTML=         no
MKLINT=         no

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

.if ${OSNAME} == "NetBSD"
RUMPLIBDIR=	/usr/lib
RUMPINCSDIR=	/usr/include
.else
RUMPLIBDIR=	${LIBDIR}
RUMPINCSDIR=	${INCSDIR}
CFLAGS+=	-I${INCSDIR} -DHAVE_NBCOMPAT_H
LDFLAGS+=	-L${LIBDIR} -lnbcompat -lc
LDADD+=         -L${LIBDIR} -lnbcompat -lc
.if ${OSNAME} == "Linux"
LDFLAGS+=       -ldl
LDADD+=         -ldl
.endif
.endif