44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# $NetBSD: Makefile.backend,v 1.3 2015/09/23 03:39:30 mrg Exp $
|
|
|
|
.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_BACKEND_
|
|
_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_BACKEND_=1
|
|
|
|
NOMAN= # defined
|
|
NOCTF= # defined
|
|
BINDIR= /usr/libexec
|
|
|
|
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} \
|
|
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
DPADD+= ${BACKENDOBJ}/libbackend.a
|
|
LDADD+= ${BACKENDOBJ}/libbackend.a
|
|
|
|
.include "../Makefile.common"
|
|
.include "../Makefile.libiberty"
|
|
|
|
HOSTPROG_CXX= 1
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
# Force using C++ for this
|
|
HOST_CC:= ${HOST_CXX}
|
|
CC:= ${CXX}
|
|
CFLAGS:= ${CXXFLAGS}
|
|
|
|
# Don't auto-frob .y or .l files.
|
|
.l.c .y.c .y.h:
|
|
@true
|
|
|
|
# Find our (local) libraries
|
|
LIBGMPDIR!= cd ${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp && ${PRINTOBJDIR}
|
|
LIBMPFRDIR!= cd ${NETBSDSRCDIR}/external/lgpl3/mpfr/lib/libmpfr && ${PRINTOBJDIR}
|
|
LIBMPCDIR!= cd ${NETBSDSRCDIR}/external/lgpl3/mpc/lib/libmpc && ${PRINTOBJDIR}
|
|
|
|
LIBGMP= ${LIBGMPDIR}/libgmp.a
|
|
LIBMPFR= ${LIBMPFRDIR}/libmpfr.a
|
|
LIBMPC= ${LIBMPCDIR}/libmpc.a
|
|
|
|
.endif
|