1998-08-17 06:55:39 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.9 1998/08/17 02:55:39 tv Exp $
|
1998-03-29 15:34:19 +04:00
|
|
|
|
|
|
|
.if !defined(GCC_MAKEFILE_INC)
|
|
|
|
GCC_MAKEFILE_INC=1
|
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
DIST= ${.CURDIR}/../../../dist/gcc
|
|
|
|
COMMON= ${.CURDIR}/../common
|
|
|
|
COMMONOBJ!= cd ${.CURDIR}/../common; \
|
|
|
|
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/../arch \
|
|
|
|
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
|
|
|
-I${COMMONOBJ} \
|
|
|
|
-I${DIST} \
|
|
|
|
-I${DIST}/config \
|
|
|
|
-DIN_GCC -DNETBSD_NATIVE
|
1998-08-17 06:55:39 +04:00
|
|
|
HOST_CPPFLAGS= ${CPPFLAGS}
|
1998-03-29 15:34:19 +04:00
|
|
|
|
|
|
|
LDADD+= -lgnumalloc
|
1998-04-03 06:20:28 +04:00
|
|
|
DPADD+= ${LIBGNUMALLOC}
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
.PATH: ${.CURDIR}/../arch \
|
|
|
|
${DIST} \
|
|
|
|
${DIST}/config
|
1998-04-16 01:54:05 +04:00
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
EGCS_VERSION!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' ${DIST}/version.c
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
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/\"
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
.if defined(USE_EGCS_HAIFA)
|
|
|
|
CPPFLAGS+= -DHAIFA
|
|
|
|
.endif
|
1998-03-29 15:34:19 +04:00
|
|
|
.endif
|