NetBSD/gnu/usr.bin/egcs/Makefile.inc

51 lines
1.2 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.13 1998/08/27 21:44:28 tv Exp $
.if !defined(GCC_MAKEFILE_INC)
GCC_MAKEFILE_INC=1
.include <bsd.own.mk>
# These architectures are Cygnus's default for enabling Haifa
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc")
USE_EGCS_HAIFA=1
.endif
# gcc has files with a "rs6000" prefix for powerpc
GNU_ARCH.powerpc=rs6000
DIST= ${.CURDIR}/../../../dist/gcc
COMMON= ${.CURDIR}/../common
.ifnmake(print-objdir)
COMMONOBJ!= cd ${.CURDIR}/../common; ${MAKE} print-objdir
.endif
CPPFLAGS+= -I${.CURDIR}/../arch \
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
-I${COMMONOBJ} \
-I${DIST} \
-I${DIST}/config \
-DIN_GCC -DNETBSD_NATIVE
HOST_CPPFLAGS= ${CPPFLAGS}
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
.PATH: ${.CURDIR}/../arch \
${DIST} \
${DIST}/config
EGCS_VERSION!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' ${DIST}/version.c
CPPFLAGS+= -DHAVE_CONFIG_H -DPREFIX=\"/usr\" \
-DDEFAULT_TARGET_VERSION=\"${EGCS_VERSION}\" \
-DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_ARCH}-netbsd\" \
-DSTANDARD_STARTFILE_PREFIX=\"/usr/lib/\" \
-DSTANDARD_EXEC_PREFIX=\"/usr/libexec/\" \
-DTOOLDIR_BASE_PREFIX=\"/usr/libexec/\"
.if defined(USE_EGCS_HAIFA)
CPPFLAGS+= -DHAIFA
.endif
.endif