NetBSD/gnu/usr.bin/groff/Makefile.cfg
cgd 385de32c08 Trade one bit of lossage for another. Now that groff has been upgraded,
the Alpha no longer needs -fno-for-scope.  However, NetBSD/Alpha's
(cygnus snapshot) g++ doesn't allow virtual functions which aren't
declared inline to be later defined as inline without a warning (-> error).
Therefore, on the Alpha, define BROKEN_GXX_VIRTUAL_INLINE (which will
go away after the Alpha is upgraded to use a more recent toolchain), and
use it to make sure that declarations of virtual functions which will
be defined inline are actually marked as inline when they're declared.
1996-10-14 05:24:23 +00:00

52 lines
1.3 KiB
INI

# $Id: Makefile.cfg,v 1.16 1996/10/14 05:24:23 cgd Exp $
.if defined(PROG)
LDADD+= -lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a
.endif
# Paths to libraries
#
# DEVICES_ is defined in devices/Makefile.inc to avoid this section.
.if !defined(DEVICES_)
LIBGROFF!=cd $(.CURDIR)/../libgroff; \
printf "xxx:\n\techo \$${.OBJDIR}/libgroff.a\n" | \
${MAKE} -r -s -f - xxx | grep libgroff
LIBDRIVER!=cd $(.CURDIR)/../libdriver; \
printf "xxx:\n\techo \$${.OBJDIR}/libdriver.a\n" | \
${MAKE} -r -s -f - xxx | grep libdriver
LIBBIB!=cd $(.CURDIR)/../libbib; \
printf "xxx:\n\techo \$${.OBJDIR}/libbib.a\n" | \
${MAKE} -r -s -f - xxx | grep libbib
.endif
CFLAGS+= -DHAVE_UNISTD_H=1\
-DHAVE_DIRENT_H=1\
-DHAVE_LIMITS_H=1\
-DHAVE_STDLIB_H=1\
-DHAVE_SYS_DIR_H=1\
-DHAVE_CC_LIMITS_H=1\
-DHAVE_CC_UNISTD_H=1\
-DSTDLIB_H_DECLARES_GETOPT=1\
-DUNISTD_H_DECLARES_GETOPT=1\
-DSTDLIB_H_DECLARES_PUTENV=1\
-DRETSIGTYPE=void\
-DHAVE_MMAP=1\
-DHAVE_RENAME=1\
-DHAVE_MKSTEMP=1\
-DHAVE_SYS_SIGLIST=1
# XXX NetBSD/Alpha's (cygnus snapshot) g++ doesn't allow virtual functions
# which aren't declared inline to be later defined as inline without a
# warning (-> error).
.if (${MACHINE_ARCH} == "alpha")
CXXFLAGS+= -DBROKEN_GXX_VIRTUAL_INLINE
.endif
.y.cc:
$(YACC) $(YFLAGS) $(.IMPSRC)
mv y.tab.c $(.PREFIX).cc
mv y.tab.h $(.PREFIX).tab.h