1996-10-14 09:24:23 +04:00
|
|
|
# $Id: Makefile.cfg,v 1.16 1996/10/14 05:24:23 cgd Exp $
|
1993-11-03 19:29:57 +03:00
|
|
|
|
|
|
|
.if defined(PROG)
|
|
|
|
LDADD+= -lgnumalloc
|
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
.endif
|
1993-08-02 21:38:43 +04:00
|
|
|
|
1993-07-15 00:36:42 +04:00
|
|
|
# Paths to libraries
|
1993-12-30 03:10:17 +03:00
|
|
|
#
|
|
|
|
# DEVICES_ is defined in devices/Makefile.inc to avoid this section.
|
|
|
|
.if !defined(DEVICES_)
|
1993-12-28 13:59:05 +03:00
|
|
|
LIBGROFF!=cd $(.CURDIR)/../libgroff; \
|
1995-10-23 00:58:21 +03:00
|
|
|
printf "xxx:\n\techo \$${.OBJDIR}/libgroff.a\n" | \
|
|
|
|
${MAKE} -r -s -f - xxx | grep libgroff
|
1993-07-15 00:36:42 +04:00
|
|
|
|
1993-12-28 13:59:05 +03:00
|
|
|
LIBDRIVER!=cd $(.CURDIR)/../libdriver; \
|
1994-01-24 21:39:52 +03:00
|
|
|
printf "xxx:\n\techo \$${.OBJDIR}/libdriver.a\n" | \
|
1995-10-23 00:58:21 +03:00
|
|
|
${MAKE} -r -s -f - xxx | grep libdriver
|
1993-07-15 00:36:42 +04:00
|
|
|
|
1993-12-28 13:59:05 +03:00
|
|
|
LIBBIB!=cd $(.CURDIR)/../libbib; \
|
1995-10-23 00:58:21 +03:00
|
|
|
printf "xxx:\n\techo \$${.OBJDIR}/libbib.a\n" | \
|
|
|
|
${MAKE} -r -s -f - xxx | grep libbib
|
1993-12-30 03:10:17 +03:00
|
|
|
.endif
|
1993-07-15 00:36:42 +04:00
|
|
|
|
|
|
|
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\
|
1993-07-18 17:00:11 +04:00
|
|
|
-DHAVE_SYS_SIGLIST=1
|
1993-07-15 00:36:42 +04:00
|
|
|
|
1996-10-14 09:24:23 +04:00
|
|
|
# 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).
|
1995-09-27 16:55:19 +03:00
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
1996-10-14 09:24:23 +04:00
|
|
|
CXXFLAGS+= -DBROKEN_GXX_VIRTUAL_INLINE
|
1995-09-27 16:55:19 +03:00
|
|
|
.endif
|
|
|
|
|
1993-07-15 00:36:42 +04:00
|
|
|
.y.cc:
|
|
|
|
$(YACC) $(YFLAGS) $(.IMPSRC)
|
|
|
|
mv y.tab.c $(.PREFIX).cc
|
|
|
|
mv y.tab.h $(.PREFIX).tab.h
|